:root{
  --text:#444;
  --muted:#747474;
  --line:#e2e5e9;
  --bg:#fff;
  --max:1120px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Montserrat,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.65
}
a{color:inherit}
.container{width:min(calc(100% - 36px),var(--max));margin:auto}
header,.site-header{
  position:sticky;top:0;z-index:20;
  background:#fff;
  border-bottom:1px solid #eee
}
.nav{height:74px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{text-decoration:none;font-weight:700;letter-spacing:.02em;font-size:1.35rem;color:#333}
nav{display:flex;gap:24px;align-items:center}
nav a{text-decoration:none;color:#666;font-weight:500}
nav a:hover,nav a.active{color:#222}
.hero{padding:72px 0 36px}
h1{font-size:clamp(2rem,4vw,3.1rem);line-height:1.15;margin:.2em 0 .4em;letter-spacing:-.03em;font-weight:600;color:#3d3d3d}
h2{font-size:clamp(1.35rem,2.4vw,1.8rem);line-height:1.25;letter-spacing:-.02em;font-weight:600;color:#3d3d3d}
h3{font-size:1.15rem;font-weight:600;color:#373737}
.lead{font-size:1.05rem;max-width:760px;color:#626262}
.actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:30px}
.btn,.dark-button{display:inline-block;padding:13px 20px;background:#333;color:#fff;text-decoration:none;border-radius:7px;font-weight:700;border:0}
.btn:hover,.dark-button:hover{opacity:.92}
.section{padding:36px 0 72px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.card{display:block;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;text-decoration:none;color:#333;box-shadow:0 2px 10px rgba(0,0,0,.03);transition:.18s ease}
.card:hover{transform:translateY(-3px);box-shadow:0 9px 28px rgba(0,0,0,.08)}
.card img,.card .thumb{display:block;width:100%;height:150px;object-fit:cover;background:#e8ebef}
.card .card-body{padding:18px 18px 20px}
.card p,.muted{color:var(--muted)}
.card .date{font-size:.78rem;color:#8d939b}
.card h3{margin:8px 0;line-height:1.35}
.card .card-body p{font-size:.93rem;line-height:1.55;margin:0}
.article{max-width:820px;margin:auto;padding:56px 0 90px}
.article h1{font-size:clamp(1.8rem,3.6vw,2.6rem)}
.article h2{margin-top:2em}
.article p,.article li{color:#555}
.meta{color:var(--muted);margin-bottom:28px}
pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f6f7f9;border:1px solid var(--line);padding:18px;border-radius:12px;color:#333}
code{font-family:"SFMono-Regular",Consolas,monospace}
table{width:100%;max-width:320px;border-collapse:collapse;margin:24px 0}
th,td{text-align:left;padding:7px 10px;border-bottom:1px solid var(--line)}
td:last-child{text-align:right}
blockquote{margin:0;padding:0}
footer,.site-footer,.home-footer{background:#2d2d2d;color:#bdbdbd;padding:31px 0;border:0}
footer .foot,.home-footer .foot{display:flex;justify-content:space-between;gap:20px;align-items:center}
footer a,.home-footer a{color:#dedede;text-decoration:none}
.gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:28px 0}
.gallery img,.article img{display:block;width:100%;height:auto;border-radius:8px}
.gallery.single,.gallery.single img{grid-template-columns:1fr;max-width:100%}
.caption{color:var(--muted);margin-top:8px}

.home-hero{position:relative;min-height:520px;background:url('/assets/images/P1010686.JPG') center center/cover no-repeat}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.08),rgba(0,0,0,.38))}
.hero-inner{position:relative;min-height:520px;display:flex;align-items:center;justify-content:flex-end}
.hero-copy{text-align:right;color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.35)}
.hero-copy .hello{font-size:clamp(1.7rem,3vw,2.2rem);font-weight:400;margin-bottom:8px}
.hero-copy h1{font-size:clamp(2.8rem,5.6vw,5.1rem);line-height:1.02;margin:0;letter-spacing:-.045em;color:#fff;font-weight:600}
.home-about{padding:74px 0 84px;background:#fff}
.narrow{max-width:1020px}.center{text-align:center}
.home-about h2,.section-heading h2{font-size:2.45rem;line-height:1.1;color:#3d3d3d;margin:0 0 32px;letter-spacing:-.025em;font-weight:500}
.home-about p{font-size:1.1rem;color:#626262;line-height:1.9;margin:10px auto;max-width:1050px}
.home-projects{padding:74px 0 86px;background:#f6f7f9;border-top:1px solid #eceef1}
.section-heading p{color:#7a7f86;margin:-12px 0 38px;font-size:1.04rem}
.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.project-card{display:block;background:#fff;border:1px solid #e2e5e9;border-radius:12px;overflow:hidden;text-decoration:none;color:#333;box-shadow:0 2px 10px rgba(0,0,0,.03);transition:.18s ease}
.project-card:hover{transform:translateY(-3px);box-shadow:0 9px 28px rgba(0,0,0,.08)}
.project-card img,.project-thumb{display:block;width:100%;height:150px;object-fit:cover;background:#e8ebef}
.project-body{padding:18px 18px 20px}
.project-body span{font-size:.78rem;color:#8d939b}
.project-body h3{font-size:1.15rem;line-height:1.35;margin:8px 0;color:#373737}
.project-body p{font-size:.93rem;line-height:1.55;color:#747474;margin:0}
.project-cta{margin-top:42px}

@media(max-width:900px){
  .project-grid,.grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-inner{justify-content:center}
  .hero-copy{text-align:center}
}
@media(max-width:620px){
  .container{width:min(calc(100% - 24px),var(--max))}
  .project-grid,.grid,.gallery{grid-template-columns:1fr}
  nav{gap:14px;font-size:.93rem}
  .nav{height:auto;padding:18px 0;flex-direction:column}
  .home-hero,.hero-inner{min-height:420px}
  footer .foot,.home-footer .foot{flex-direction:column;text-align:center}
}
