* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #030602;
  --panel: rgba(14, 30, 17, 0.16);
  --panel-solid: #060f08;
  --glass-blur: blur(22px) saturate(180%);
  --glass-sheen: inset 0 1px 0 rgba(255,255,255,0.09), inset 0 0 40px rgba(255,255,255,0.025);
  --border: rgba(70, 255, 120, 0.14);
  --border-strong: rgba(70, 255, 120, 0.34);
  --accent: #45ff7a;
  --accent-dim: #1f8a44;
  --accent-glow: rgba(69, 255, 122, 0.35);
  --text: #eafff0;
  --text-dim: #9fc2a9;
  --text-faint: #5c7864;
  --mono: 'SFMono-Regular', ui-monospace, 'JetBrains Mono', 'Courier New', monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

html, body {
  min-height: 100%;
  background: var(--bg);
  font-family: var(--sans);
  color: var(--text);
  overflow-x: hidden;
}

body {
  cursor: none;
}

.has-coarse-pointer body {
  cursor: auto;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* ---- custom cursor -------------------------------------------------- */
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px var(--accent-glow), 0 0 28px 6px rgba(69, 255, 122, 0.2);
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-100px, -100px, 0) scale(1);
  transition: transform 0.09s ease-out, opacity 0.15s ease, background 0.2s ease;
}
#cursor-dot.hovering { transform-origin: center; }
#cursor-dot.hidden { opacity: 0; }
.has-coarse-pointer #cursor-dot { display: none; }

/* ---- mossy forest photo background (cursor-parallax) ------------------ */
.bg-photo-wrap {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
}
.bg-photo {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  /* two declarations on purpose: older browsers stop at the jpg, browsers that
     understand image-set() take the webp (~35% smaller for the same look) */
  background-image: url("assets/forest-bg.jpg");
  background-image: image-set(
    url("assets/forest-bg.webp") type("image/webp"),
    url("assets/forest-bg.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
  filter: brightness(0.56) saturate(1.05);
  will-change: transform;
  transition: transform 0.4s cubic-bezier(.16,.84,.44,1);
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(1,3,1,0.65) 0%, rgba(1,3,1,0.05) 32%, rgba(1,3,1,0) 55%, rgba(1,3,1,0.7) 100%),
    radial-gradient(ellipse at center, rgba(1,3,1,0) 42%, rgba(1,3,1,0.6) 100%);
}

/* ---- layout shell ----------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  /* 1fr auto 1fr keeps the links optically centered on the page regardless of
     how wide the logo or the button happen to be */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px clamp(20px, 5vw, 56px);
  font-family: var(--mono);
  /* glass backdrop so the bar stays readable once content scrolls under it */
  background: rgba(4, 10, 6, 0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.site-nav .logo {
  justify-self: start;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text);
  text-shadow: 0 0 18px var(--accent-glow);
}

.site-nav > .btn { justify-self: end; }

.site-nav .nav-links {
  justify-self: center;
  display: flex;
  gap: 32px;
  align-items: center;
}

.site-nav .nav-links a {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.site-nav .nav-links a:hover { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: var(--sans);
  border: 1px solid transparent;
  cursor: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.has-coarse-pointer .btn { cursor: pointer; }
.btn:active { transform: scale(0.97); }

.btn-sm { padding: 9px 18px; font-size: 12px; }

.btn-primary {
  background: var(--accent);
  color: #021206;
  box-shadow: 0 0 0 rgba(69,255,122,0);
}
.btn-primary:hover {
  box-shadow: 0 6px 24px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.92);
  color: #06170e;
}
.btn-ghost:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,255,255,0.15); }

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-dim);
  font-family: var(--sans);
  text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 4px 18px rgba(0,0,0,0.9);
  transition: color 0.2s ease, gap 0.2s ease;
}
.link-arrow:hover { color: var(--accent); gap: 10px; }

/* ---- hero -------------------------------------------------------------- */
.hero {
  position: relative;
  z-index: 5;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: clamp(110px, 18vh, 190px) clamp(20px, 5vw, 56px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(69,255,122,0.06);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 auto 24px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 2px var(--accent-glow);
}

.hero h1 {
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  /* wide enough to keep "Less work behind them." on one line at full size;
     the <strong> below is a block, so each sentence gets its own line */
  max-width: 24ch;
  margin: 0 auto;
  color: var(--text-dim);
  text-shadow: 0 4px 30px rgba(0,0,0,0.85);
}
.hero h1 strong {
  display: block;
  color: var(--text);
  font-weight: 700;
}

.hero p.lede {
  margin: 22px auto 0;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dim);
  text-shadow: 0 4px 24px rgba(0,0,0,0.85);
  padding: 10px 18px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(3, 6, 2, 0.28);
}

/* legibility safety-net: keep headline/body text crisp against the photo */
.section-head h2,
.section-head p,
.about-grid h2,
.about-grid p,
.cta-section h2,
.cta-section p {
  text-shadow: 0 4px 24px rgba(0,0,0,0.85);
}

.hero .cta-row {
  margin: 34px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}

/* ---- hero stat strip --------------------------------------------------- */
.hero-stats {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(28px, 5vw, 64px);
  margin: 44px auto 0;
  padding-top: 30px;
  width: fit-content;
  max-width: 100%;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hero-stats .hs-num {
  font-family: var(--mono);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--accent);
  text-shadow: 0 0 22px var(--accent-glow), 0 2px 12px rgba(0,0,0,0.9);
}
.hero-stats .hs-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-shadow: 0 2px 10px rgba(0,0,0,0.95);
}

.scroll-cue {
  position: fixed;
  left: clamp(20px, 5vw, 56px);
  bottom: 34px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.scroll-cue .arrow {
  display: inline-block;
  animation: scrollpulse 2s ease-in-out infinite;
  color: var(--accent);
}
@keyframes scrollpulse {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* ---- content sections (translucent scrim over the fixed photo) --------- */
main.content {
  position: relative;
  z-index: 5;
  background: rgba(3, 6, 2, 0.62);
}

.section {
  padding: 120px clamp(20px, 5vw, 56px);
  max-width: 1180px;
  margin: 0 auto;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.15;
}

.section-head p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
  max-width: 54ch;
}

/* ---- shared glass treatment for info boxes ------------------------------ */
.service-card,
.about-stats .stat {
  background: var(--panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-sheen);
}

/* ---- bracket-corner card frame (shared) -------------------------------- */
.corner-frame {
  position: relative;
}
.corner-frame::before,
.corner-frame::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  opacity: var(--pop-glow, 0);
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.corner-frame::before {
  top: 10px;
  left: 10px;
  border-top: 1px solid rgba(255,255,255,0.55);
  border-left: 1px solid rgba(255,255,255,0.55);
}
.corner-frame::after {
  bottom: 10px;
  right: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.55);
  border-right: 1px solid rgba(255,255,255,0.55);
}

/* ---- unified reactive transform for every info box: cursor-proximity pop
   composes with per-card tilt via shared CSS custom properties -------------- */
.service-card,
.about-stats .stat {
  transform:
    translateX(var(--pop-shift-x, 0px))
    translateY(var(--pop-lift, 0px))
    scale(var(--pop-scale, 1))
    perspective(900px)
    rotateX(var(--tilt-rx, 0deg))
    rotateY(var(--tilt-ry, 0deg));
  box-shadow: var(--pop-shadow, var(--glass-sheen));
  transition:
    transform 0.35s cubic-bezier(.16,.84,.44,1),
    box-shadow 0.35s cubic-bezier(.16,.84,.44,1),
    border-color 0.35s ease;
  will-change: transform, box-shadow;
}

/* the scroll-reveal rule below (same specificity: one class + one attribute)
   resolves its "settled" transform to translate(0) scale(1) once revealed —
   without this, that rule wins by source order and permanently freezes these
   boxes at identity transform, silently discarding every hover pop value */
.service-card.in-view,
.about-stats .stat.in-view {
  transform:
    translateX(var(--pop-shift-x, 0px))
    translateY(var(--pop-lift, 0px))
    scale(var(--pop-scale, 1))
    perspective(900px)
    rotateX(var(--tilt-rx, 0deg))
    rotateY(var(--tilt-ry, 0deg)) !important;
}

/* once the reveal animation has finished, hand timing back to the hover
   transition — otherwise the reveal rule's 0.8s duration and per-card stagger
   delay keep applying, making later cards visibly lag the cursor */
.service-card.reveal-done,
.about-stats .stat.reveal-done {
  transition:
    transform 0.35s cubic-bezier(.16,.84,.44,1),
    box-shadow 0.35s cubic-bezier(.16,.84,.44,1),
    border-color 0.35s ease !important;
  transition-delay: 0s !important;
}

/* ---- service cards ------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.service-card {
  position: relative;
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  transform-style: preserve-3d;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }

.service-card .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.service-card h3 {
  margin-top: 18px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.service-card p {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}

.service-card .tags {
  margin-top: 22px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.service-card .tags span {
  font-family: var(--mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-faint);
}

/* ---- about --------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}
.about-grid p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 18px;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.about-stats .stat {
  position: relative;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
}
.about-stats .stat .n {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--mono);
}
.about-stats .stat .l {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-faint);
}

/* ---- final CTA ---------------------------------------------------------------- */
.cta-section {
  position: relative;
  text-align: center;
  padding-top: 120px;
  padding-bottom: 140px;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 640px;
  height: 100%;
  background: radial-gradient(ellipse 50% 60% at 50% 30%, rgba(69,255,122,0.1), transparent 70%);
  pointer-events: none;
}
.cta-section h2 {
  position: relative;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0 auto;
}
.cta-section p {
  position: relative;
  margin: 18px auto 0;
  max-width: 48ch;
  color: var(--text-dim);
  font-size: 16px;
}
.cta-section .btn { position: relative; margin-top: 32px; }

/* embedded enquiry form at the foot of the landing page — the section itself
   is centered, but form fields read better left-aligned */
.cta-form-wrap {
  position: relative;
  max-width: 560px;
  margin: 44px auto 0;
  padding: 34px clamp(20px, 4vw, 38px);
  text-align: left;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-sheen);
}
.cta-form-wrap .demo-form { margin-top: 0; }
.cta-form-wrap .btn { margin-top: 6px; align-self: flex-start; }

/* ---- footer -------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px clamp(20px, 5vw, 56px) 32px;
}
.footer-top {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .logo {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text);
}
.footer-brand p {
  margin-top: 14px;
  color: var(--text-faint);
  font-size: 14px;
  max-width: 32ch;
  line-height: 1.6;
}
.footer-col-title {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}

/* ---- reveal-on-scroll: pieces converge into place -------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  filter: blur(7px);
  transition:
    opacity 0.8s cubic-bezier(.16,.84,.44,1),
    transform 0.8s cubic-bezier(.16,.84,.44,1),
    filter 0.8s cubic-bezier(.16,.84,.44,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity, filter;
}
[data-reveal="left"] { transform: translateX(-58px) translateY(20px) scale(0.96); }
[data-reveal="right"] { transform: translateX(58px) translateY(20px) scale(0.96); }
[data-reveal].in-view {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
  filter: blur(0px);
}

/* ---- demo/book page ---------------------------------------------------------------- */
.demo-page {
  min-height: 100svh;
  background: var(--bg);
  position: relative;
}
.demo-shell {
  max-width: 620px;
  margin: 0 auto;
  padding: 160px clamp(20px, 6vw, 56px) 100px;
}
.demo-shell h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.demo-shell > p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
  max-width: 50ch;
}

.demo-form {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* two fields sharing one row (full name + email) */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
/* grid items default to min-width:auto, which lets a wide input push its
   track past the container — pin it to 0 so both columns stay equal */
.field-row .field { min-width: 0; }
.field label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}
.field input,
.field select,
.field textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  cursor: auto;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--border-strong);
  background: rgba(255,255,255,0.05);
}
.field select {
  cursor: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2345ff7a'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' stroke='%2345ff7a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.has-coarse-pointer .field select { cursor: pointer; }
.field textarea { resize: vertical; min-height: 120px; font-family: var(--sans); }

.demo-form .btn { align-self: flex-start; margin-top: 6px; }

.form-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-faint);
}

.form-success {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(69,255,122,0.08);
  color: var(--accent);
  font-size: 14px;
  display: none;
}
.form-success.visible { display: block; }

.form-error {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 120, 120, 0.4);
  background: rgba(255, 90, 90, 0.1);
  color: #ffb3b3;
  font-size: 14px;
  display: none;
}
.form-error.visible { display: block; }

.demo-form button[type="submit"][disabled] {
  opacity: 0.65;
  pointer-events: none;
}

.back-link {
  position: fixed;
  top: 26px;
  left: clamp(20px, 5vw, 56px);
  z-index: 30;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
}
.back-link:hover { color: var(--accent); }

/* ---- responsive ------------------------------------------------------------------- */
@media (max-width: 860px) {
  /* links collapse away on narrow screens — fall back to logo + button so the
     grid's empty middle column doesn't push the button off-centre */
  .site-nav {
    display: flex;
    justify-content: space-between;
  }
  .site-nav .nav-links { display: none; }
  .card-grid, .about-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 90px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .scroll-cue { display: none; }
}
