:root {
  --ink:#2A2521;          /* background          */
  --ink-2:#322B26;        /* lifted surface      */
  --line:rgba(236,227,213,.10);
  --sand:#ECE3D5;         /* primary text        */
  --sand-dim:#A89C8D;     /* muted text          */
  --terra:#C56A44;        /* accent              */
  --terra-2:#D98B5E;      /* accent light        */
  --maxw:980px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--sand); background: var(--ink);
  -webkit-font-smoothing: antialiased; line-height: 1.65;
  overflow-x: hidden;
}
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; z-index: 1; }
a { color: inherit; }

/* ---- cursor glow (follows mouse, behind content) ---- */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 600px; height: 600px;
  margin: -300px 0 0 -300px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(197,106,68,.22), rgba(197,106,68,0) 60%);
  will-change: transform; transition: opacity .4s ease;
}

/* ---- scroll progress ---- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 100;
  background: var(--terra); transform: scaleX(0); transform-origin: 0 50%;
}

/* ---- nav ---- */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(42,37,33,.72);
  border-bottom: 1px solid var(--line);
}
nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
nav .brand { flex: none; line-height: 0; }
nav .brand img { height: 30px; width: 126px; display: block; }
nav .links { display: flex; align-items: center; gap: 28px; }
nav .links a { text-decoration: none; font-size: .95rem; font-weight: 600; color: var(--sand-dim); transition: color .18s; }
nav .links a:hover { color: var(--sand); }
nav .btn { font-size: .9rem; font-weight: 700; color: #fff; background: var(--terra);
  padding: .5rem .95rem; border-radius: 10px; text-decoration: none; transition: background .18s, transform .18s; }
nav .btn:hover { background: var(--terra-2); transform: translateY(-1px); }

/* ---- shared section bits ---- */
.eyebrow { font-family: "JetBrains Mono", monospace; font-weight: 500; font-size: .8rem;
  letter-spacing: .04em; color: var(--terra-2); }
.eyebrow::before { content: "// "; opacity: .7; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em;
  line-height: 1.15; margin: .5rem 0 0; }
.lead { color: var(--sand-dim); max-width: 60ch; margin-top: 1rem; font-size: 1.05rem; }

/* ---- hero ---- */
.hero { min-height: 86vh; display: flex; align-items: center; padding: 7rem 0 4rem; }
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.2rem); font-weight: 800; letter-spacing: -.03em;
  line-height: 1.05; margin: 1rem 0 0; }
.hero h1 .accent { color: var(--terra); }
.hero p.sub { color: var(--sand-dim); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 56ch; margin-top: 1.4rem; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }
.cta a { text-decoration: none; font-weight: 700; padding: .85rem 1.5rem; border-radius: 12px; transition: all .18s ease; }
.cta .primary { background: var(--terra); color: #fff; }
.cta .primary:hover { background: var(--terra-2); transform: translateY(-2px); }
.cta .ghost { color: var(--sand); border: 1px solid var(--line); }
.cta .ghost:hover { border-color: var(--terra-2); color: var(--terra-2); }

/* ---- services ---- */
.services { padding: clamp(72px,12vh,130px) 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 2.6rem; }
.card {
  position: relative; overflow: hidden; padding: 1.6rem 1.5rem 1.7rem;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px;
  transition: transform .2s ease, border-color .2s ease;
}
.card::before { /* mouse-follow spotlight */
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .25s;
  background: radial-gradient(240px circle at var(--cx,50%) var(--cy,50%), rgba(197,106,68,.16), transparent 70%);
}
.card:hover { transform: translateY(-3px); border-color: rgba(217,139,94,.45); }
.card:hover::before { opacity: 1; }
.card .icon { width: 42px; height: 42px; display: block; margin-bottom: .9rem; }
.card h3 { font-size: 1.2rem; font-weight: 700; margin: .7rem 0 .5rem; letter-spacing: -.01em; }
.card p { color: var(--sand-dim); font-size: .98rem; }

/* ---- approach ---- */
.approach { padding: clamp(72px,12vh,130px) 0; border-top: 1px solid var(--line); }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 2.6rem; }
.principle h4 { font-size: 1.05rem; font-weight: 700; }
.principle .icon { width: 38px; height: 38px; display: block; margin-bottom: .7rem; }
.principle p { color: var(--sand-dim); margin-top: .5rem; font-size: .96rem; }

/* ---- contact ---- */
.contact { padding: clamp(80px,14vh,150px) 0; border-top: 1px solid var(--line); text-align: center; }
.contact h2 { margin-inline: auto; }
.contact .lead { margin-inline: auto; }
.mailbtn { display: inline-flex; align-items: center; gap: .55rem; margin-top: 2rem;
  font-weight: 700; font-size: 1.05rem; text-decoration: none; color: #fff;
  background: var(--terra); padding: 1rem 1.8rem; border-radius: 14px; transition: background .18s, transform .18s; }
.mailbtn:hover { background: var(--terra-2); transform: translateY(-2px); }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 24px; padding-bottom: 24px; font-family: "JetBrains Mono", monospace; font-size: .78rem; color: var(--sand-dim); }
footer a { text-decoration: none; }
footer a:hover { color: var(--terra-2); }

/* ---- reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.grid .card:nth-child(2), .principles .principle:nth-child(2) { transition-delay: .08s; }
.grid .card:nth-child(3), .principles .principle:nth-child(3) { transition-delay: .16s; }
.grid .card:nth-child(4) { transition-delay: .24s; }

@media (max-width: 620px) {
  nav .links a.navlink { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor-glow { display: none; }
}
