/* ============================================================
   POUNDKEEPER.COM
   Animal-control notebook meets AI lab.
   Mobile-first. Dark, rugged, editorial.
   ============================================================ */

:root {
  --ink: #0c0d0b;            /* near-black */
  --charcoal: #161814;
  --surface: #1c1f1a;
  --surface-raised: #232722;
  --cream: #ede4d0;
  --cream-dim: #b9b09c;
  --tan: #a08c6e;
  --green: #4d7a58;
  --green-deep: #27402f;
  --orange: #f4641d;
  --orange-soft: #ff8a4a;
  --line: rgba(237, 228, 208, 0.14);
  --line-soft: rgba(237, 228, 208, 0.07);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --pad: clamp(1.25rem, 4vw, 3rem);
  --section-gap: clamp(4.5rem, 10vw, 8.5rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* faint blueprint grid over everything */
  background-image:
    linear-gradient(rgba(237, 228, 208, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 228, 208, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
}

.mono { font-family: var(--font-mono); }

img, svg { display: block; max-width: 100%; }
.icon { width: 100%; height: 100%; fill: currentColor; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

::selection { background: var(--orange); color: var(--ink); }

/* ---------- shared bits ---------- */

.section {
  padding: var(--section-gap) var(--pad);
  max-width: 72rem;
  margin: 0 auto;
  border-top: 1px dashed var(--line);
  position: relative;
}

/* case-file divider notch on each section seam */
.section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: var(--pad);
  width: 4.5rem;
  height: 4px;
  background: var(--green);
}

.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.section-head h2 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  margin-top: 0.9rem;
}

.section-intro {
  margin-top: 1rem;
  max-width: 38rem;
  color: var(--cream-dim);
}

.lede {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  color: var(--cream);
}

/* stamped label */
.stamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--green);
  border: 1.5px solid currentColor;
  border-radius: 3px;
  padding: 0.3rem 0.7rem;
  transform: rotate(-1.2deg);
  background: rgba(77, 122, 88, 0.06);
}

.stamp-orange { color: var(--orange); background: rgba(244, 100, 29, 0.06); }

/* buttons */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  border-radius: 4px;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 0 0 0 rgba(244, 100, 29, 0.4);
}

.btn-primary:hover { background: var(--orange-soft); }

.btn-ghost {
  border-color: var(--line);
  color: var(--cream);
}

.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* blinking terminal cursor */
.cursor {
  display: inline-block;
  margin-left: 0.25rem;
  color: var(--orange);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in { opacity: 1; transform: none; }

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

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem var(--pad);
  background: rgba(12, 13, 11, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-tag {
  display: inline-flex;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0.4rem;
  background: var(--green-deep);
  color: var(--cream);
  border: 1px solid var(--green);
  border-radius: 6px 6px 50% 50%;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
}

.brand-text em { font-style: normal; color: var(--green); }

.site-nav {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-dim);
  transition: color 0.2s ease;
}

.site-nav a:hover { color: var(--cream); }

.site-nav .nav-cta {
  color: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 3px;
  padding: 0.35rem 0.8rem;
}

.site-nav .nav-cta:hover { background: var(--orange); color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--charcoal);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.open { max-height: 20rem; }

  .site-nav a {
    width: 100%;
    padding: 1rem var(--pad);
    border-top: 1px dashed var(--line-soft);
  }

  .site-nav .nav-cta { border: none; border-top: 1px dashed var(--line-soft); border-radius: 0; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   1. HERO
   ============================================================ */

.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) var(--pad) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(39, 64, 47, 0.55), transparent 70%),
    var(--ink);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--green);
  opacity: 0.16;
}

.paw-trail { position: absolute; inset: 0; color: var(--cream); }

.paw-step {
  position: absolute;
  width: 1.4rem;
  height: 1.4rem;
  opacity: 0;
  animation: pawfade 9s ease-in-out infinite;
}

.p1 { right: 12%; bottom: 8%;  transform: rotate(-24deg); animation-delay: 0s; }
.p2 { right: 17%; bottom: 18%; transform: rotate(-12deg); animation-delay: 0.9s; }
.p3 { right: 14%; bottom: 29%; transform: rotate(-20deg); animation-delay: 1.8s; }
.p4 { right: 19%; bottom: 40%; transform: rotate(-8deg);  animation-delay: 2.7s; }
.p5 { right: 16%; bottom: 51%; transform: rotate(-16deg); animation-delay: 3.6s; }

@keyframes pawfade {
  0%, 100% { opacity: 0; }
  12%, 55% { opacity: 0.18; }
  75% { opacity: 0; }
}

.hero-inner {
  position: relative;
  max-width: 46rem;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(3rem, 11vw, 5.75rem);
  font-weight: 700;
  margin-top: 1.4rem;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.6);
}

.hero-sub {
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--green);
  margin-top: 1rem;
  filter: brightness(1.35);
}

.hero-copy {
  margin-top: 1.4rem;
  max-width: 36rem;
  color: var(--cream-dim);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.hero-tagline {
  margin-top: 2.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--tan);
}

/* terminal card */
.terminal {
  margin-top: 2.8rem;
  max-width: 28rem;
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transform: rotate(-0.4deg);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--line-soft);
}

.terminal-bar .dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--line);
}

.terminal-bar .dot:first-child { background: var(--orange); }

.terminal-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cream-dim);
  letter-spacing: 0.08em;
}

.terminal-body {
  padding: 0.9rem 1rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.9;
}

.t-prompt { color: var(--orange); }
.t-out { color: var(--green); filter: brightness(1.3); }

/* ============================================================
   2. ABOUT
   ============================================================ */

.about-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 880px) {
  .about-grid { grid-template-columns: 1.6fr 1fr; align-items: start; }
}

.about-copy p + p { margin-top: 1.2rem; }
.about-copy p { color: var(--cream-dim); }
.about-copy .lede { color: var(--cream); }
.about-copy strong { color: var(--cream); font-weight: 600; }

/* kennel tag card */
.tag-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px 10px 48% 48% / 10px 10px 14% 14%;
  padding: 2.4rem 1.6rem 2.6rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  transform: rotate(1deg);
  max-width: 22rem;
}

.tag-card-hole {
  position: absolute;
  top: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--tan);
}

.tag-card-title {
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--tan);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.9rem;
  margin-bottom: 1.1rem;
}

.tag-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dotted var(--line-soft);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.tag-card dt { color: var(--tan); }
.tag-card dd { text-align: right; }
.tag-card .status-ok { color: var(--green); filter: brightness(1.3); }

.tag-card-stamp {
  position: absolute;
  right: 1rem;
  bottom: 2.2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--orange);
  border: 2px solid var(--orange);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  transform: rotate(-12deg);
  opacity: 0.85;
}

/* ============================================================
   3. PROJECTS
   ============================================================ */

.cards {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .cards { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

/* folder tab strip */
.card-tab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--tan);
  background: var(--surface-raised);
  border-bottom: 1px dashed var(--line);
  padding: 0.55rem 1.2rem;
}

.card-status {
  color: var(--green);
  filter: brightness(1.3);
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 0.1rem 0.45rem;
  transform: rotate(-2deg);
}

.status-pending { color: var(--orange); filter: none; }

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.2rem 1.4rem;
}

.card-icon {
  width: 2.2rem;
  height: 2.2rem;
  color: var(--green);
  filter: brightness(1.25);
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--cream-dim);
  flex: 1;
}

.card-cta {
  margin-top: 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--orange);
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.card-cta:hover { border-color: var(--orange); }

.card-cta-soon { color: var(--tan); cursor: default; }

.card-pending { border-style: dashed; background: transparent; }
.card-pending .card-tab { background: transparent; }

/* ============================================================
   4. WHY THIS EXISTS
   ============================================================ */

.why-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 880px) { .why-grid { grid-template-columns: 1fr 1.2fr; } }

.why-copy p { color: var(--cream-dim); }
.why-copy p + p {
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--cream);
}

.why-list {
  list-style: none;
  border-top: 1px dashed var(--line);
}

.why-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--line);
  color: var(--cream-dim);
}

@media (min-width: 560px) {
  .why-list li { flex-direction: row; align-items: baseline; gap: 1.2rem; }
}

.why-key {
  flex-shrink: 0;
  width: 9.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--green);
  filter: brightness(1.3);
}

/* ============================================================
   5. THE BIGGER UNIVERSE
   ============================================================ */

.universe-board {
  position: relative;
  background: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
}

.constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--green);
  opacity: 0.5;
}

.universe-center {
  position: relative;
  margin: 0 auto 2rem;
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--ink);
  background: var(--orange);
  border-radius: 3px;
  padding: 0.45rem 0.9rem;
  transform: rotate(-1deg);
  box-shadow: 0 6px 18px rgba(244, 100, 29, 0.25);
}

.universe-grid {
  position: relative;
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 700px) { .universe-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; } }

.sector {
  background: rgba(12, 13, 11, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.4rem 1.3rem;
  backdrop-filter: blur(2px);
}

.sector h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cream);
  margin-bottom: 0.7rem;
}

.sector-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green);
  filter: brightness(1.3);
  box-shadow: 0 0 10px rgba(77, 122, 88, 0.8);
  flex-shrink: 0;
}

.sector-dot-orange {
  background: var(--orange);
  box-shadow: 0 0 10px rgba(244, 100, 29, 0.8);
}

.sector p { font-size: 0.92rem; color: var(--cream-dim); }

/* ============================================================
   6. WRITING
   ============================================================ */

.post-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.post {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem 0.2rem;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.2s ease;
}

.post:hover { background: rgba(237, 228, 208, 0.03); }

.post-num {
  font-size: 0.7rem;
  color: var(--tan);
  flex-shrink: 0;
}

.post-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

@media (min-width: 720px) {
  .post-main { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 1.5rem; }
}

.post h3 {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 500;
}

.post-cat {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--green);
  filter: brightness(1.3);
  flex-shrink: 0;
}

.post-soon {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--tan);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.2rem 0.5rem;
  flex-shrink: 0;
}

.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.8rem;
}

.chip {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--cream-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

/* ============================================================
   7. CONTACT
   ============================================================ */

.contact { border-top: none; }
.contact::before { display: none; }

.contact-box {
  position: relative;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 100% at 50% 100%, rgba(39, 64, 47, 0.5), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--pad);
  overflow: hidden;
}

.contact-box h2 {
  font-size: clamp(1.9rem, 5.5vw, 3rem);
  margin-top: 1rem;
}

.contact-box > p {
  max-width: 34rem;
  margin: 1.1rem auto 2rem;
  color: var(--cream-dim);
}

.contact-note {
  margin-top: 1.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--green);
  filter: brightness(1.3);
}

/* ============================================================
   8. FOOTER
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--charcoal);
  padding: 3rem var(--pad) 2rem;
}

.footer-grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 2.2rem;
}

@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }

.footer-brand .brand-tag { margin-bottom: 0.8rem; }

.footer-tagline {
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--cream-dim);
  max-width: 20rem;
}

.footer-nav { display: flex; flex-direction: column; gap: 0.55rem; }

.footer-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--tan);
  margin-bottom: 0.4rem;
}

.footer-nav a {
  text-decoration: none;
  color: var(--cream-dim);
  font-size: 0.92rem;
  width: fit-content;
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: var(--orange); }

.footer-bottom {
  max-width: 72rem;
  margin: 2.5rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px dashed var(--line);
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--tan);
  max-width: 46rem;
  line-height: 1.7;
}

.footer-copy {
  margin-top: 1.2rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--cream-dim);
  opacity: 0.7;
}
