:root{
  --stone-900:#181F1D;
  --stone-800:#242E2B;
  --stone-700:#374440;
  --limestone:#EDEAE1;
  --limestone-2:#E2DDCF;
  --aqua-deep:#146572;
  --aqua-bright:#3FC6D9;
  --sand:#C9B896;
  --ink:#151816;
  --paper:#F8F6F1;
  --radius:4px;
  --maxw:1180px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Inter', sans-serif;
  color:var(--ink);
  background:var(--limestone);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.display{
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  letter-spacing:-0.01em;
}
.mono{
  font-family:'JetBrains Mono', monospace;
  letter-spacing:0.02em;
}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 24px;}
:focus-visible{outline:2px solid var(--aqua-bright); outline-offset:3px;}

/* ---------- Header ---------- */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(24,31,29,0.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 24px;
  max-width:var(--maxw); margin:0 auto;
}
.logo{
  font-family:'Space Grotesk', sans-serif;
  font-weight:700; font-size:22px; letter-spacing:0.02em;
  color:var(--paper);
}
.logo span{color:var(--aqua-bright);}
.nav-links{display:flex; gap:32px; align-items:center;}
.nav-links a{
  color:var(--limestone-2); font-size:14px; font-weight:500;
  transition:color .2s;
}
.nav-links a:hover, .nav-links a.active{color:var(--aqua-bright);}
.cta-btn{
  background:var(--aqua-bright);
  color:var(--stone-900);
  padding:11px 22px;
  border-radius:var(--radius);
  font-weight:600; font-size:14px;
  border:none; cursor:pointer;
  transition:transform .15s, background .2s;
  display:inline-block;
}
.cta-btn:hover{background:#5FD6E6; transform:translateY(-1px);}
.nav-toggle{display:none;}

/* ---------- Hero ---------- */
.hero{
  background:var(--stone-900);
  color:var(--paper);
  padding:72px 0 0;
  overflow:hidden;
}
.hero-inner{
  display:grid; grid-template-columns:1fr; gap:36px;
  max-width:var(--maxw); margin:0 auto; padding:0 24px 56px;
}
.eyebrow{
  font-family:'JetBrains Mono', monospace;
  font-size:12px; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--aqua-bright); margin-bottom:18px; display:block;
}
.hero h1{
  font-size:clamp(34px, 5.4vw, 60px);
  line-height:1.06;
  max-width:17ch;
  margin-bottom:20px;
}
.hero h1 em{font-style:normal; color:var(--aqua-bright);}
.hero p{
  font-size:17px; color:var(--limestone-2); max-width:46ch; margin-bottom:28px;
}
.hero-ctas{display:flex; gap:14px; flex-wrap:wrap;}
.ghost-btn{
  padding:11px 22px; border-radius:var(--radius);
  border:1px solid rgba(255,255,255,0.25); color:var(--paper);
  font-weight:500; font-size:14px; transition:border-color .2s;
}
.ghost-btn:hover{border-color:var(--aqua-bright);}

/* ---------- Page header (for non-home pages) ---------- */
.page-header{
  background:var(--stone-900); color:var(--paper); padding:64px 0 48px;
}
.page-header h1{font-size:clamp(30px,4.2vw,44px); margin-bottom:12px;}
.page-header p{color:var(--limestone-2); max-width:52ch; font-size:16px;}

/* ---------- Reveal (signature element) ---------- */
.reveal-wrap{
  position:relative;
  width:100%;
  aspect-ratio:16/7;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.1);
  cursor:ew-resize;
  user-select:none;
  background:var(--stone-800);
}
.reveal-wrap svg{position:absolute; top:0; left:0; width:100%; height:100%;}
.reveal-wrap img{position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover;}
.reveal-clean{clip-path:inset(0 0 0 var(--split, 50%));}
.reveal-label{
  position:absolute; top:14px; font-family:'JetBrains Mono',monospace;
  font-size:11px; letter-spacing:0.08em; text-transform:uppercase;
  padding:5px 10px; border-radius:2px; pointer-events:none;
}
.reveal-label.before{left:14px; background:rgba(0,0,0,0.45); color:#D8D2C2;}
.reveal-label.after{right:14px; background:rgba(63,198,217,0.9); color:var(--stone-900);}
.reveal-handle{
  position:absolute; top:0; bottom:0; left:var(--split, 50%);
  width:2px; background:var(--aqua-bright);
  transform:translateX(-1px);
  pointer-events:none;
}
.reveal-handle::after{
  content:'⇔';
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:38px; height:38px; border-radius:50%;
  background:var(--aqua-bright); color:var(--stone-900);
  display:flex; align-items:center; justify-content:center;
  font-size:16px; box-shadow:0 4px 14px rgba(0,0,0,0.35);
}
.reveal-caption{
  text-align:center; font-size:13px; color:var(--limestone-2); margin-top:12px;
}
.reveal-range{
  position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:ew-resize;
}

/* ---------- Sections general ---------- */
section{padding:88px 0;}
.section-head{max-width:60ch; margin-bottom:48px;}
.section-head .eyebrow{color:var(--aqua-deep);}
.section-head h2{font-size:clamp(26px,3.4vw,38px); margin-bottom:12px;}
.section-head p{color:var(--stone-700); font-size:16px;}

/* ---------- Services ---------- */
.services{background:var(--limestone);}
.service-groups{display:grid; grid-template-columns:repeat(3,1fr); gap:28px;}
.service-card{
  background:var(--paper);
  border:1px solid rgba(20,25,23,0.08);
  border-radius:var(--radius);
  padding:28px 24px;
}
.service-card .num{
  font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--aqua-deep);
  display:block; margin-bottom:14px;
}
.service-card h3{font-size:18px; margin-bottom:12px;}
.service-card ul{list-style:none;}
.service-card li{
  font-size:14.5px; color:var(--stone-700);
  padding:9px 0; border-top:1px solid rgba(20,25,23,0.08);
  display:flex; align-items:center; gap:10px;
}
.service-card li:first-of-type{border-top:none;}
.service-card li::before{
  content:''; width:5px; height:5px; border-radius:50%;
  background:var(--aqua-bright); flex-shrink:0;
}

/* ---------- Why us ---------- */
.why{background:var(--stone-900); color:var(--paper);}
.why .section-head .eyebrow{color:var(--aqua-bright);}
.why .section-head p{color:var(--limestone-2);}
.why-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:24px;}
.why-item .mono{font-size:26px; color:var(--aqua-bright); display:block; margin-bottom:10px;}
.why-item h3{font-size:16px; margin-bottom:8px; font-weight:600;}
.why-item p{font-size:14px; color:var(--limestone-2);}

/* ---------- Projects gallery ---------- */
.projects-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:32px;}
.project-card{
  background:var(--paper); border:1px solid rgba(20,25,23,0.08);
  border-radius:var(--radius); overflow:hidden;
}
.project-card .reveal-wrap{border-radius:0; border:none; aspect-ratio:16/10;}
.project-body{padding:20px 22px;}
.project-tag{
  display:inline-block; font-family:'JetBrains Mono',monospace; font-size:11px;
  letter-spacing:0.06em; text-transform:uppercase; color:var(--aqua-deep);
  background:rgba(20,101,114,0.08); padding:4px 10px; border-radius:2px; margin-bottom:10px;
}
.project-card h3{font-size:17px; margin-bottom:6px;}
.project-meta{font-size:13.5px; color:var(--stone-700);}
.project-placeholder-note{
  font-size:12.5px; color:var(--stone-700); text-align:center; margin-top:36px;
}

/* ---------- Quote form ---------- */
.quote{background:var(--limestone-2);}
.quote-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start;
}
.quote-grid h2{font-size:clamp(24px,3vw,32px); margin-bottom:14px;}
.quote-grid > div:first-child p{color:var(--stone-700); font-size:15.5px; margin-bottom:24px;}
.price-hint{
  display:flex; gap:16px; align-items:center;
  background:var(--paper); border-radius:var(--radius); padding:16px 18px;
  border:1px solid rgba(20,25,23,0.08);
}
.price-hint .mono{font-size:22px; color:var(--aqua-deep);}
.price-hint span{font-size:13px; color:var(--stone-700); display:block;}
form{background:var(--paper); padding:30px; border-radius:var(--radius); border:1px solid rgba(20,25,23,0.08);}
.field{margin-bottom:16px;}
.field label{
  display:block; font-size:13px; font-weight:600; margin-bottom:6px; color:var(--stone-800);
}
.field input, .field select, .field textarea{
  width:100%; padding:11px 12px; border:1px solid rgba(20,25,23,0.18);
  border-radius:var(--radius); font-family:'Inter',sans-serif; font-size:14.5px;
  background:var(--limestone);
}
.field textarea{resize:vertical; min-height:80px;}
.field input[type="file"]{
  padding:9px 12px; background:var(--limestone); cursor:pointer;
}
.field input[type="file"]::file-selector-button{
  background:var(--aqua-deep); color:var(--paper); border:none;
  padding:7px 14px; border-radius:2px; font-family:'Inter',sans-serif;
  font-size:13px; font-weight:500; margin-right:12px; cursor:pointer;
}
.field input[type="file"]::file-selector-button:hover{background:var(--aqua-bright); color:var(--stone-900);}
.field-row{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
form .cta-btn{width:100%; margin-top:6px; background:var(--aqua-deep); color:var(--paper); padding:13px;}
form .cta-btn:hover{background:var(--aqua-bright); color:var(--stone-900);}
.form-note{font-size:12px; color:var(--stone-700); margin-top:10px; text-align:center;}

/* ---------- Footer ---------- */
footer{background:var(--stone-900); color:var(--limestone-2); padding:48px 0 28px;}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:32px; margin-bottom:36px;}
.footer-grid h4{font-size:13px; color:var(--paper); margin-bottom:14px; letter-spacing:0.04em;}
.footer-grid p, .footer-grid a{font-size:14px; color:var(--limestone-2); display:block; margin-bottom:8px;}
.footer-grid a:hover{color:var(--aqua-bright);}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.1); padding-top:20px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px;
  font-size:12.5px; color:var(--stone-700);
}

/* ---------- Responsive ---------- */
@media (max-width:860px){
  .nav-links{display:none;}
  .service-groups{grid-template-columns:1fr;}
  .why-grid{grid-template-columns:1fr 1fr; row-gap:32px;}
  .quote-grid{grid-template-columns:1fr; gap:32px;}
  .field-row{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr; gap:24px;}
  .projects-grid{grid-template-columns:1fr;}
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  .cta-btn:hover{transform:none;}
}
