/* ==========================================================================
   Hookton Software
   Type: Instrument Sans (self-hosted variable). Warm paper base, green accent.
   ========================================================================== */

/* Variable font: one file covers the whole 400-700 axis. */
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper:    #faf8f4;
  --paper-2:  #f4f0e8;
  --ink:      #14140f;
  --mid:      #5f5b52;
  --soft:     #7a7366;
  --line:     rgba(20, 20, 15, .10);
  --line-2:   rgba(20, 20, 15, .20);
  --green:    #086a4a;
  --green-d:  #0a5842;

  --wrap:     1120px;
  --pad:      24px;
  --tight:    -.032em;

  /* Left gutter that lines the hero copy up with every .wrap below it.
     Uses % (not vw) so the scrollbar can't knock it out of alignment. */
  --gutter:   max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad)));

  --e: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 { font-weight: 500; letter-spacing: var(--tight); margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
canvas { display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.vh {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green); color: #fff; padding: 12px 18px; font-size: 14px;
}
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }

::selection { background: rgba(8, 106, 74, .16); }

/* ==========================================================================
   Ball cursor
   ========================================================================== */

.ball {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border: 1px solid var(--green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 90;
  opacity: 0;
  transition: opacity .3s, width .22s var(--e), height .22s var(--e),
              margin .22s var(--e), background-color .22s var(--e);
  will-change: transform;
}
.ball.on { opacity: 1; }
.ball.hot {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  background: rgba(8, 106, 74, .10);
}
@media (hover: none), (pointer: coarse) { .ball { display: none; } }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.nav.stuck { border-bottom-color: var(--line); background: rgba(250, 248, 244, .92); }

.nav-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { display: block; width: 22px; height: 22px; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-word { font-size: 17px; font-weight: 500; letter-spacing: var(--tight); }

.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15.5px; }
.nav-links a { color: var(--mid); transition: color .2s; }
.nav-links a:hover { color: var(--green); }

@media (max-width: 640px) {
  .nav-links { gap: 18px; font-size: 14px; }
}

/* ==========================================================================
   Hero — copy on a container gutter, dot field bleeding off the right edge
   ========================================================================== */

.hero { padding: 64px 0 88px; overflow: hidden; }

.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-left: var(--gutter);
  padding-right: 0;
}

.hero-h1 {
  font-size: clamp(2.3rem, 3.7vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: var(--tight);
  margin-bottom: 24px;
}
.hero-h1 .dim { color: var(--soft); }

.caret {
  display: inline-block;
  width: .46em; height: .76em;
  margin-left: .06em;
  vertical-align: -.04em;
  background: var(--green);
  transform: translateX(0);
}
.caret.blink { animation: blink 1.05s steps(1, end) infinite; }
.caret.fly {
  transition: transform 1.15s cubic-bezier(.65, .02, .28, 1), opacity .3s .95s;
  opacity: 0;
}
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.hero-sub {
  max-width: 44ch;
  color: var(--mid);
  font-size: 16.5px;
  line-height: 1.62;
  margin-bottom: 32px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: 4px;
  font-size: 15.5px; letter-spacing: -.008em;
  white-space: nowrap;
  transition: background-color .22s, color .22s, border-color .22s, transform .22s var(--e);
}
.btn:active { transform: scale(.985); }
.arw { width: 15px; height: 15px; flex: none; transition: transform .25s var(--e); }
.btn:hover .arw { transform: translateX(3px); }

.btn-solid { background: var(--green); color: #fff; }
.btn-solid:hover { background: var(--green-d); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* Dot field */
.hero-art { position: relative; min-width: 0; }
.hero-art canvas { width: 100%; height: 460px; }

.art-label {
  margin-top: 14px;
  font-size: 11.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--soft);
  opacity: 0;
  transition: opacity .45s;
}
.art-label.on { opacity: 1; }

@media (max-width: 900px) {
  .hero { padding: 40px 0 60px; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; padding-right: 0; }
  /* The grid drops its right padding so the dot field can bleed; the copy
     column has to put its own gutter back or the text runs off the edge. */
  .hero-copy { padding-right: var(--pad); }
  .hero-art canvas { height: 320px; }
  .hero-sub { font-size: 16px; }
  .caret.fly { transition: opacity .3s; }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.sec { padding: 88px 0; }
.sec.bordered { border-top: 1px solid var(--line); }

/* Green marker replaces Beacon's bare grey eyebrow. */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 32px;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  flex: none;
  background: var(--green);
}

.h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  line-height: 1.12;
}
.h2.lead { max-width: 620px; margin-bottom: 52px; }
.h2.big { font-size: clamp(2rem, 3.4vw, 3rem); }

/* Approach split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 64px; }
.sticky-h { position: sticky; top: 106px; align-self: start; }

.prose p { color: var(--mid); font-size: 16.5px; line-height: 1.7; margin-bottom: 22px; max-width: 60ch; }
.prose p:last-child { margin-bottom: 0; }
.prose .signoff {
  margin-top: 36px; padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink); font-size: 15px; line-height: 1.5;
}
.prose .signoff span { color: var(--soft); }

@media (max-width: 860px) {
  .sec { padding: 60px 0; }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .sticky-h { position: static; }
  .prose p { font-size: 16px; }
}

/* Criteria */
.grid-3 { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(3, 1fr); }

.grid-3 > li { background: var(--paper); padding: 28px 26px 32px; transition: background-color .3s; }
.grid-3 > li:hover { background: var(--paper-2); }

.grid-3 h3 { font-size: 16.5px; line-height: 1.3; margin-bottom: 10px; }
.grid-3 p { color: var(--mid); font-size: 14.5px; line-height: 1.6; }

.num {
  display: block;
  font-size: 11.5px; letter-spacing: .1em;
  color: var(--green);
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .grid-3 { grid-template-columns: 1fr; } }

/* Contact */
.contact { padding: 96px 0 104px; }
.contact-sub { color: var(--mid); font-size: 16.5px; line-height: 1.62; max-width: 46ch; margin: 20px 0 38px; }

.mail {
  display: inline-block;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: var(--tight);
  color: var(--green);
  border-bottom: 1px solid rgba(8, 106, 74, .3);
  padding-bottom: 4px;
  transition: border-color .25s;
}
.mail:hover { border-bottom-color: var(--green); }

/* ==========================================================================
   Footer
   ========================================================================== */

.foot { border-top: 1px solid var(--line); padding: 24px 0 32px; }
.foot-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--soft);
}
.foot-name { color: var(--ink); }
.foot-l { display: inline-flex; align-items: center; gap: 10px; }
.foot-sep { color: var(--line-2); }
.foot-clock time { font-variant-numeric: tabular-nums; }

@media (max-width: 520px) {
  .foot-in { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ==========================================================================
   Reveal: content wipes in left to right
   Scoped to .rv-on, which JS sets in <head> before first paint. Without JS the
   content is simply visible. Nothing depends on a script to be readable.
   ========================================================================== */

.rv-on [data-rv] {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: translateX(-10px);
}
.rv-on [data-rv].in {
  opacity: 1;
  clip-path: inset(0 -6% 0 0);
  transform: none;
  transition:
    clip-path .95s var(--e),
    opacity .6s var(--e),
    transform .95s var(--e);
  transition-delay: var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv-on [data-rv] { opacity: 1 !important; clip-path: none !important; transform: none !important; transition: none !important; }
  .caret { animation: none !important; transition: none !important; }
  .ball { display: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
