:root {
  --bg: #0d0d10;
  --bg-alt: #141418;
  --card: #18181d;
  --line: #2a2a31;
  --text: #ececf1;
  --muted: #a2a2ad;
  --accent: #8b8bf0;   /* periwinkle carried over from the Squarespace theme */
  --accent-ink: #0d0d10;
  --wood: #a4643c;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--accent); }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: max(20px, 4vw); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .75rem;
  font-weight: 500; color: var(--accent); margin-bottom: 1rem;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13,13,16,.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 500; letter-spacing: .02em; }
.brand-mark { width: 26px; height: 26px; color: var(--accent); }
.nav-links { display: flex; gap: 1.6rem; align-items: center; font-size: .92rem; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta { color: var(--text); border: 1px solid var(--line); padding: .45rem 1rem; border-radius: 999px; }
.nav-links .nav-cta:hover { border-color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: .85rem 1.5rem; border-radius: 999px; transition: transform .15s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #a3a3f5; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; margin-top: .5rem; }

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(88vh, 760px); display: flex; align-items: center;
  padding-block: clamp(4rem, 10vw, 7rem);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 57% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 75% 70% at 57% 45%, #000 20%, transparent 75%);
}
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(42% 48% at 57% 32%, rgba(139,139,240,.3), transparent 70%),
    radial-gradient(35% 40% at 85% 85%, rgba(164,100,60,.16), transparent 70%);
}
.hero-tri {
  position: absolute; left: 57%; top: 50%; transform: translate(-50%, -46%);
  height: 108%; width: auto; max-width: 62%;
  animation: rise 3.2s cubic-bezier(.16,.8,.24,1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translate(-50%, -30%) scale(.92); }
  to   { opacity: 1; transform: translate(-50%, -46%) scale(1); }
}
/* each triangle draws itself in, outer first */
.hero-tri .tl { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s cubic-bezier(.45,.05,.25,1) forwards; }
.hero-tri .tl1 { animation-delay: .2s; }
.hero-tri .tl2 { animation-delay: .6s; }
.hero-tri .tl3 { animation-delay: 1s; }
.hero-tri .tl4 { animation-delay: 1.4s; }
.hero-tri .tl5 { animation-delay: 1.8s; }
.hero-tri .tl6 { animation-delay: 2.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* apex lights up last, then breathes */
.hero-tri .apex, .hero-tri .apex-halo { transform-box: fill-box; transform-origin: center; opacity: 0; }
.hero-tri .apex { animation: pop .8s ease-out 2.4s forwards; }
.hero-tri .apex-halo { animation: pop .8s ease-out 2.4s forwards, pulse 3.6s ease-in-out 3.2s infinite; }
@keyframes pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0%,100% { opacity: .9; transform: scale(1); } 50% { opacity: .35; transform: scale(1.8); } }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero-inner { position: relative; width: 100%; }
.hero-inner::before {
  /* soft dark veil behind the text so the triangle lines fade where they cross it */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -6rem; top: -5rem; bottom: -5rem; width: min(56rem, calc(100% + 6rem));
  background: radial-gradient(ellipse 62% 58% at 50% 50%, rgba(13,13,16,.92) 0%, rgba(13,13,16,.82) 50%, rgba(13,13,16,0) 88%);
}
.hero-inner h1 { max-width: 40rem; }
.hero-inner .lede { max-width: 33rem; }
.lede { font-size: 1.15rem; color: var(--muted); }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
@media (prefers-reduced-motion: reduce) {
  .hero-tri, .hero-tri .tl, .hero-tri .apex, .hero-tri .apex-halo { animation: none; }
  .hero-tri .tl { stroke-dashoffset: 0; }
  .hero-tri .apex, .hero-tri .apex-halo { opacity: 1; }
}

/* Intro */
.intro { padding-block: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.big { font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.5; margin: 0; }

/* Sections */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 3rem; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.5rem; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.num { display: block; font-size: .8rem; color: var(--wood); font-weight: 500; letter-spacing: .1em; margin-bottom: 1.4rem; }

/* Approach */
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative; padding: 0 0 1.6rem 3.4rem; color: var(--muted);
  border-left: 1px solid var(--line); margin-left: 1rem;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(s); position: absolute; left: -1rem; top: -.1rem;
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--accent); color: var(--accent); font-size: .85rem; font-weight: 500;
}
.steps span { display: block; color: var(--text); font-weight: 500; margin-bottom: .2rem; }

/* Contact */
.contact { background: radial-gradient(80% 120% at 50% 100%, #1d1d2b 0%, var(--bg) 70%); }
.email-line { color: var(--muted); font-size: .9rem; margin-top: 1rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 1.8rem; font-size: .85rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .approach-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-tri { left: 62%; max-width: none; height: 85%; opacity: .4; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
}
