/* =========================================================================
   site.css — Thunderhead Solutions · shared design system (home + blog)
   Dark-first, dependency-free. Brand: green accent.
   ========================================================================= */
:root{
  --green:      #5AD352;
  --green-deep: #46B83F;
  --bg:         #12161E;   /* page */
  --bg-2:       #161B24;   /* raised / cards  */
  --bg-3:       #0E131B;   /* recessed (hero, contact, footer) */
  --text:       #E9EDF4;
  --text-70:    #A8B2C0;
  --text-45:    #6E7A8C;
  --line:       rgba(255,255,255,.09);
  --line-2:     rgba(255,255,255,.16);
  --head: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-lg: 20px;
  --r: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 50px -20px rgba(0,0,0,.6);
  --wrap: 1140px;
  --ease: cubic-bezier(.22,1,.3,1);
  /* compat aliases (a few inline rules reference these) */
  --dark: #0E131B;
  --dark-2: #141A24;
  --dark-line: rgba(255,255,255,.12);
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  font-family:var(--body);
  font-size:16.5px; line-height:1.65;
  color:var(--text); background:var(--bg);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  min-height:100svh; display:flex; flex-direction:column;
}
main{ flex:1 0 auto; }
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
h1,h2,h3,h4{ font-family:var(--head); font-weight:700; letter-spacing:-.02em; line-height:1.12; text-wrap:balance; }
p{ text-wrap:pretty; }
::selection{ background:var(--green); color:#08110a; }

.wrap{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:24px; }
.section{ padding:104px 0; }
.section-tight{ padding:72px 0; }

/* ------------------------------------------------------------------ type / labels */
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--body); font-size:12.5px; font-weight:600;
  letter-spacing:.16em; text-transform:uppercase; color:var(--green);
}
.kicker::before{ content:""; width:22px; height:2px; background:var(--green); border-radius:2px; }
.lede{ font-size:1.06rem; color:var(--text-70); }

/* ------------------------------------------------------------------ buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-family:var(--body); font-size:15px; font-weight:600; line-height:1;
  padding:15px 26px; border-radius:999px; border:1.5px solid transparent;
  cursor:pointer; white-space:nowrap;
  transition:transform .16s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:active{ transform:translateY(1px) scale(.99); }
.btn-green{ background:var(--green); color:#08130a; box-shadow:0 10px 30px -10px rgba(90,211,82,.5); }
.btn-green:hover{ background:var(--green-deep); color:#fff; }
.btn-ghost{ background:transparent; color:var(--text); border-color:var(--line-2); }
.btn-ghost:hover{ border-color:rgba(255,255,255,.5); background:rgba(255,255,255,.06); }
.btn-ghost-light{ background:transparent; color:#fff; border-color:rgba(255,255,255,.32); }
.btn-ghost-light:hover{ border-color:#fff; background:rgba(255,255,255,.08); }
.btn-lg{ padding:17px 32px; font-size:16px; }
.btn-sm{ padding:10px 18px; font-size:14px; }
/* a .btn link inside article/nav text: its variant's colour must win over link/parent colours */
a.btn.btn-green{ color:#08130a; }
a.btn.btn-green:hover{ color:#fff; background:#2F8F33; }
a.btn.btn-ghost, a.btn.btn-ghost-light{ color:var(--text); }
a.btn.btn-ghost:hover{ border-color:rgba(255,255,255,.5); background:rgba(255,255,255,.06); }
a.btn.btn-ghost-light:hover{ border-color:#fff; background:rgba(255,255,255,.1); color:#fff; }

/* ------------------------------------------------------------------ nav */
.nav{ position:fixed; inset:0 0 auto 0; z-index:60; transition:background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav .wrap{ display:flex; align-items:center; justify-content:space-between; height:74px; }
.nav-scrolled{ background:rgba(14,19,27,.85); backdrop-filter:saturate(1.3) blur(14px); box-shadow:0 1px 0 var(--line); }
.brand{ display:inline-flex; align-items:center; gap:12px; font-family:var(--head); font-weight:700; font-size:16px; letter-spacing:.14em; color:#fff; }
.brand img{ width:38px; height:38px; }
.nav-links{ display:flex; align-items:center; gap:34px; }
.nav-links a{ font-size:15px; font-weight:500; color:rgba(255,255,255,.78); transition:color .2s; position:relative; }
.nav-links a::after{ content:""; position:absolute; left:0; right:100%; bottom:-6px; height:2px; background:var(--green); transition:right .28s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current]{ color:#fff; }
.nav-links a[aria-current]::after{ right:0; }
.nav-toggle{ display:none; }
@media (max-width:860px){
  .hero{ min-height:auto; padding:110px 0 56px; }
  .bhero{ padding:110px 0 48px; }
  .section{ padding:64px 0; }
  .section-tight{ padding:48px 0; }
  .article__inner{ padding:48px 20px 64px; }
  .nav .wrap{ height:64px; }
  .nav-toggle{ display:inline-flex; flex-direction:column; gap:4px; background:none; border:0; cursor:pointer; padding:10px; }
  .nav-toggle span{ width:22px; height:2px; background:#fff; border-radius:2px; transition:.3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }
  .nav-links{
    position:fixed; inset:64px 0 auto 0; flex-direction:column; align-items:stretch; gap:0;
    background:var(--bg-2); box-shadow:0 24px 40px -20px rgba(0,0,0,.6);
    padding:10px 24px 22px; transform:translateY(-130%); transition:transform .34s var(--ease);
    border-bottom:1px solid var(--line);
  }
  body.nav-open .nav-links{ transform:translateY(0); }
  .nav-links a{ color:var(--text); padding:15px 0; font-size:16px; }
  .nav-links a::after{ display:none; }
  .nav-links .btn{ margin-top:14px; }
}

/* ------------------------------------------------------------------ hero (home + blog shared look) */
.photo-hero{ position:relative; isolation:isolate; background:var(--bg-3); }
.photo-hero__bg{ position:absolute; inset:0; z-index:-1; overflow:hidden; }
.photo-hero__bg img{ width:100%; height:100%; object-fit:cover; opacity:.68; }
.photo-hero__bg::after{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(80% 120% at 85% 0%, rgba(90,211,82,.16), transparent 45%),
    linear-gradient(100deg, rgba(10,14,21,.72) 0%, rgba(10,14,21,.36) 55%, rgba(10,14,21,.14) 100%),
    linear-gradient(180deg, transparent 62%, var(--bg-3) 99%);
}
.hero{ min-height:min(100svh,900px); display:flex; align-items:center; color:#fff; padding:150px 0 100px; }
/* hero: on mobile don't force a full-viewport height (content ends early) */
@media (max-width:600px){
  .hero{ min-height:0; padding-bottom:52px; }
  .bhero{ padding-bottom:40px; }
  .hero__cta{ margin-top:28px; gap:10px; }
  .hero__cta .btn{ width:100%; justify-content:center; }
  .hero__meta{ gap:8px 18px; margin-top:36px; }
}
.hero h1{ font-size:clamp(2.7rem, 6.2vw, 4.6rem); font-weight:700; margin:22px 0 24px; color:#fff; max-width:16ch; }
.hero h1 .accent{ color:var(--green); }
.hero__lead{ font-size:clamp(1.05rem,1.5vw,1.22rem); color:rgba(255,255,255,.78); max-width:56ch; }
.hero__cta{ display:flex; flex-wrap:wrap; gap:14px; margin-top:38px; }
.hero__meta{ display:flex; flex-wrap:wrap; gap:10px 28px; margin-top:52px; padding-top:26px; border-top:1px solid var(--dark-line); }
.hero__meta span{ display:inline-flex; align-items:center; gap:9px; font-size:14px; color:rgba(255,255,255,.55); }
.hero__meta span::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--green); box-shadow:0 0 0 4px rgba(90,211,82,.16); }

/* blog hero — same photo treatment, smaller */
.bhero{ color:#fff; padding:150px 0 78px; }
.bhero h1{ font-size:clamp(2.4rem,5vw,3.8rem); margin:20px 0 16px; max-width:22ch; color:#fff; }
.bmeta{ display:flex; flex-wrap:wrap; gap:10px 22px; align-items:center; font-size:14.5px; color:rgba(255,255,255,.7); }
.bmeta .dot{ width:4px; height:4px; border-radius:50%; background:rgba(255,255,255,.4); }

/* ------------------------------------------------------------------ services */
.svc{ display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.05fr); gap:64px; align-items:center; padding:56px 0; }
.svc + .svc{ border-top:1px solid var(--line); }
.svc__media{ position:relative; border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow); aspect-ratio:5/4; background:var(--bg-2); border:1px solid var(--line); }
.svc__media img{ width:100%; height:100%; object-fit:cover; transition:transform 1.1s var(--ease); }
.svc:hover .svc__media img{ transform:scale(1.04); }
.svc h2{ font-size:clamp(1.7rem,2.8vw,2.35rem); margin:16px 0 18px; }
.svc p{ color:var(--text-70); max-width:52ch; }
.svc p strong{ color:var(--text); }
.svc__foot{ margin-top:30px; display:flex; flex-wrap:wrap; gap:16px 26px; align-items:center; }
@media (max-width:900px){
  .svc{ grid-template-columns:1fr; gap:32px; padding:48px 0; }
  .svc__media{ aspect-ratio:16/10; order:-1; }
}

/* ------------------------------------------------------------------ values */
.values{ background:var(--bg-3); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.values__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:44px; }
.value{
  background:var(--bg-2); border:1px solid var(--line); border-radius:var(--r);
  padding:30px 28px; transition:transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.value:hover{ transform:translateY(-4px); box-shadow:var(--shadow); border-color:var(--line-2); }
.value h3{ font-size:1.35rem; margin-bottom:10px; }
.value p{ color:var(--text-70); font-size:15px; }
.value__ic{ width:46px; height:46px; border-radius:12px; display:grid; place-items:center; background:rgba(90,211,82,.13); color:var(--green); margin-bottom:18px; }
.value__ic svg{ width:22px; height:22px; }
@media (max-width:820px){ .values__grid{ grid-template-columns:1fr; } }

/* ------------------------------------------------------------------ credentials band */
.creds{ display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:56px; align-items:center; }
.creds h2{ font-size:clamp(1.7rem,2.6vw,2.2rem); }
.creds__badges{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.cred{
  background:var(--bg-2); border:1px solid var(--line); border-radius:var(--r);
  padding:18px 14px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:10px;
  transition:transform .3s var(--ease), border-color .3s;
}
.cred:hover{ transform:translateY(-3px); border-color:rgba(90,211,82,.4); }
.cred img{ width:100%; max-width:86px; height:auto; border-radius:8px; }
.cred small{ font-size:11.5px; line-height:1.55; color:var(--text-70); letter-spacing:.02em; }
.cred--text{ justify-content:center; background:linear-gradient(180deg, rgba(90,211,82,.10), rgba(90,211,82,.03)); border-color:rgba(90,211,82,.35); }
.cred--text strong{ font-family:var(--head); font-size:1.5rem; font-weight:700; color:var(--green); }
.cred--text small{ color:var(--text-70); }
@media (max-width:820px){
  .creds{ grid-template-columns:1fr; gap:34px; }
  .creds__badges{ grid-template-columns:repeat(2,1fr); }
}

/* skill tags */
.tags{ display:flex; flex-wrap:wrap; gap:10px; margin-top:52px; }
.tags span{
  font-size:13.5px; font-weight:500; color:var(--text-70);
  border:1px solid var(--line-2); border-radius:999px; padding:8px 15px;
  background:var(--bg-2); transition:border-color .25s, color .25s;
}
.tags span:hover{ border-color:rgba(90,211,82,.5); color:var(--text); }

/* ------------------------------------------------------------------ contact */
.contact{ background:var(--bg-3); color:var(--text); border-top:1px solid var(--line); }
.contact__grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:56px; align-items:center; }
.contact h2{ color:#fff; font-size:clamp(2rem,3.6vw,3rem); margin:18px 0 18px; }
.contact p.sub{ color:var(--text-70); max-width:48ch; }
.contact__cta{ margin-top:34px; display:flex; flex-wrap:wrap; gap:14px; }
.contact__panel{ background:var(--bg-2); border:1px solid var(--line); border-radius:var(--r-lg); padding:34px; }
.cline{ display:flex; align-items:center; gap:16px; padding:18px 0; border-top:1px solid var(--line); }
.cline:first-child{ border-top:0; padding-top:0; }
.cline:last-child{ padding-bottom:0; }
.cline__ic{ width:44px; height:44px; flex:none; border-radius:12px; display:grid; place-items:center; background:rgba(90,211,82,.13); color:var(--green); }
.cline__ic svg{ width:20px; height:20px; }
.cline small{ display:block; font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--text-45); margin-bottom:2px; }
.cline a, .cline strong{ font-size:16px; font-weight:500; color:var(--text); }
.cline a:hover{ color:var(--green); }
@media (max-width:900px){ .contact__grid{ grid-template-columns:1fr; gap:36px; } }

/* ------------------------------------------------------------------ footer (pinned) */
.foot{ border-top:1px solid var(--line); background:var(--bg-3); color:rgba(255,255,255,.55); font-size:14.5px; padding:40px 0; margin-top:auto; }
.foot .wrap{ display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.foot__links{ display:flex; gap:26px; align-items:center; }
.foot a{ color:rgba(255,255,255,.72); }
.foot a:hover{ color:#fff; }
.foot__brand{ display:inline-flex; align-items:center; gap:10px; font-family:var(--head); font-weight:700; letter-spacing:.14em; color:#fff; }
.foot__brand img{ width:26px; height:26px; }

/* =========================================================================
   BLOG
   ========================================================================= */
.post-list{ border-top:1px solid var(--line); }
.post-row{ display:grid; grid-template-columns:150px 1fr auto; gap:30px; align-items:center; padding:34px 0; border-bottom:1px solid var(--line); transition:background .2s; }
.post-row:hover{ background:linear-gradient(90deg, rgba(90,211,82,.06), transparent 45%); }
.post-row__date{ font-size:13.5px; color:var(--text-45); letter-spacing:.02em; }
.post-row__date b{ display:block; font-family:var(--head); font-size:15px; color:var(--text); font-weight:600; letter-spacing:0; }
.post-row h2{ font-size:clamp(1.25rem,2.2vw,1.7rem); margin-bottom:8px; }
.post-row h2 a{ transition:color .2s; }
.post-row:hover h2 a{ color:var(--green); }
.post-row__ex{ color:var(--text-70); font-size:15.5px; max-width:64ch; }
.post-row__arrow{ font-size:22px; color:var(--text-45); transition:transform .25s var(--ease), color .2s; }
.post-row:hover .post-row__arrow{ transform:translateX(6px); color:var(--green); }
@media (max-width:720px){
  .post-row{ grid-template-columns:1fr; gap:12px; }
  .post-row__arrow{ display:none; }
}

/* post article */
.article{ border-top:1px solid var(--line); }
.article__inner{ max-width:720px; margin-inline:auto; padding:64px 24px 96px; }
.article > * + *{ margin-top:1.15em; }
.article p{ font-size:1.09rem; color:#CBD3DF; }
.article h2{ font-size:1.85rem; margin:2.4em 0 .5em; }
.article h3{ font-size:1.4rem; margin:2em 0 .4em; }
.article a{ color:var(--green); text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1.5px; }
.article a:hover{ color:#fff; }
.article ul{ list-style:disc; padding-left:1.3em; line-height:1.85; color:#CBD3DF; }
.article li{ margin:.35em 0; }
.article li::marker{ color:var(--green); }
.article blockquote{
  border:0; margin:2.2em 0; padding:6px 0 6px 30px;
  border-left:3px solid var(--green); font-size:1.28rem; font-family:var(--head); font-weight:500; color:#fff; line-height:1.4;
}
.article code{ background:rgba(255,255,255,.08); padding:2px 7px; border-radius:6px; font-size:.9em; color:#E9EDF4; }
.article hr{ border:0; border-top:1px solid var(--line); margin:2.6em 0; }
.post-cta{ background:var(--bg-2); border:1px solid var(--line); border-radius:var(--r); padding:28px; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-top:3em; }
.post-cta p{ color:var(--text-70); font-size:15.5px; max-width:40ch; }
.back{ display:inline-flex; align-items:center; gap:8px; font-weight:600; color:var(--text-70); margin-bottom:8px; }
.back:hover{ color:var(--green); }

/* reveal-on-scroll */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity:1; transform:none; }

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ transition:none !important; animation:none !important; }
  .reveal{ opacity:1; transform:none; }
}
