/* Dog Gone Good: theme Boot camp. Split khaki/OD. */
@font-face {
  font-family: "Black Ops One";
  src: url("../fonts/black-ops-one.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --khaki: #e0d4a8;
  --khaki-wash: #cfc294;
  --od: #262b1a;
  --od-deep: #1c2013;
  --cream: #f0ead2;
  --cream-dim: #c9bfa0;
  --ball: #a8bf2a;
  --ball-deep: #7f9420;
  --line-light: #b8a878;
  --line-dark: #3c422a;
  --radius: 18px;
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.75vw, 1.6rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.75vw, 2.5rem);
  --step-6: clamp(3rem, 1.8rem + 6vw, 5.75rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--khaki); color: var(--od);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: var(--step-0); line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: "Black Ops One", Georgia, serif; font-weight: 400; line-height: 1.08; letter-spacing: 0.005em; text-wrap: balance; margin: 0 0 0.6em; }
p { text-wrap: pretty; margin: 0 0 1em; }
a { color: inherit; }
em.accent { font-family: Georgia, "Times New Roman", serif; font-style: italic; color: var(--ball-deep); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
section { padding: clamp(4.5rem, 10vw, 8rem) 0; }

.eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ball-deep); font-weight: 700; margin: 0 0 1.1rem; }
.section-title { font-size: var(--step-3); max-width: 16ch; }
.lede { font-size: var(--step-1); color: #4c5232; max-width: 60ch; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--od); color: var(--cream); padding: 0.75rem 1.25rem; z-index: 200; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--khaki) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line-light); box-shadow: 0 8px 24px rgba(38,43,26,0.15); }
.header-inner { max-width: 1280px; margin: 0 auto; padding: 0.8rem clamp(1.25rem, 4vw, 2.5rem); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: "Black Ops One", Georgia, serif; font-size: 1.25rem; color: var(--od); }
.brand-mark { width: 32px; height: 32px; color: var(--ball-deep); transition: transform 0.2s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-10deg); }
.site-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.site-nav a { text-decoration: none; font-size: 0.95rem; font-weight: 600; color: #4c5232; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0; background: var(--ball-deep); transition: width 0.18s ease-out; }
.site-nav a:hover::after { width: 100%; }
.site-nav a:hover { color: var(--od); }
.header-call {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--od); color: var(--cream); text-decoration: none; font-weight: 800;
  font-variant-numeric: tabular-nums; padding: 0.65rem 1.1rem; border-radius: 6px; font-size: 1rem;
  transition: transform 0.18s ease-out, background 0.18s ease-out;
}
.header-call svg { width: 17px; height: 17px; }
.header-call:hover { background: var(--ball-deep); transform: translateY(-2px); }

/* Hero */
.hero { position: relative; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem); overflow: hidden; background: var(--khaki); }
.drill-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(38,43,26,0.08) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(38,43,26,0.08) 47px 48px);
  mask-image: radial-gradient(ellipse 90% 90% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 40%, black 30%, transparent 75%);
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.hero-title { font-size: var(--step-6); margin: 0 0 1.2rem; }
.mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-sub { font-size: var(--step-1); color: #4c5232; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.8rem 0 2.2rem; }
.btn-primary {
  display: inline-block; background: var(--od); color: var(--cream); text-decoration: none; font-weight: 800;
  font-variant-numeric: tabular-nums; padding: 1rem 1.7rem; border-radius: 6px; font-size: 1.08rem;
  transition: transform 0.18s ease-out, background 0.18s ease-out, box-shadow 0.18s ease-out;
  box-shadow: 0 6px 20px rgba(38,43,26,0.28);
}
.btn-primary:hover { background: var(--ball-deep); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(38,43,26,0.35); }
.btn-ghost {
  display: inline-block; border: 2px solid var(--od); color: var(--od); text-decoration: none; font-weight: 700;
  padding: 0.95rem 1.6rem; border-radius: 6px; transition: background 0.18s ease-out, color 0.18s ease-out, transform 0.18s ease-out;
}
.btn-ghost:hover { background: var(--od); color: var(--cream); transform: translateY(-3px); }
.trust-row { list-style: none; display: flex; gap: 2.2rem; margin: 0; padding: 1.6rem 0 0; border-top: 2px solid var(--od); flex-wrap: wrap; }
.trust-row li { display: grid; gap: 0.15rem; }
.trust-row strong { font-family: "Black Ops One", Georgia, serif; font-size: 1.15rem; }
.trust-row span { font-size: 0.85rem; color: #4c5232; }

/* Weave divider (transition 1) */
.weave-divider { background: var(--khaki); padding: 0.4rem clamp(1.25rem, 4vw, 2.5rem); display: flex; justify-content: center; }
.weave-divider svg { width: min(620px, 90vw); height: auto; }
.weave-divider .poles { stroke: var(--ball-deep); stroke-width: 8; }
.weave-divider .poles path { stroke-dasharray: 60; stroke-dashoffset: 60; }
.js .weave-divider.drawn .poles path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.45s var(--ease); }
.js .weave-divider.drawn .poles path:nth-child(2) { transition-delay: 0.08s; }
.js .weave-divider.drawn .poles path:nth-child(3) { transition-delay: 0.16s; }
.js .weave-divider.drawn .poles path:nth-child(4) { transition-delay: 0.24s; }
.js .weave-divider.drawn .poles path:nth-child(5) { transition-delay: 0.32s; }
.js .weave-divider.drawn .poles path:nth-child(6) { transition-delay: 0.40s; }
.js .weave-divider.drawn .poles path:nth-child(7) { transition-delay: 0.48s; }
.js .weave-divider.drawn .poles path:nth-child(8) { transition-delay: 0.56s; }
.js .weave-divider.drawn .poles path:nth-child(9) { transition-delay: 0.64s; }

/* Services */
.services { background: var(--khaki); }
.drill-rows { list-style: none; margin: 3rem 0 0; padding: 0; border-top: 3px solid var(--od); }
.drill-rows li {
  display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem; align-items: baseline;
  padding: 1.7rem 0.5rem; border-bottom: 1px solid var(--line-light);
  transition: background 0.18s ease-out, padding-left 0.25s var(--ease);
}
.drill-rows li:hover { background: var(--khaki-wash); padding-left: 1.1rem; }
.row-num { font-family: "Black Ops One", Georgia, serif; font-size: 1.7rem; color: var(--ball-deep); font-variant-numeric: tabular-nums; }
.drill-rows h3 { font-size: 1.5rem; margin: 0 0 0.3rem; }
.drill-rows p { margin: 0; color: #4c5232; max-width: 62ch; }

/* Sticky command cards (transition 2) */
.day { background: var(--od); color: var(--cream); }
.day .section-title { color: var(--cream); }
.day .lede { color: var(--cream-dim); }
.stack { margin-top: 3rem; display: grid; gap: 1.4rem; }
.stack-card {
  position: sticky; top: calc(84px + var(--i) * 16px);
  background: var(--od-deep); border: 1px solid var(--line-dark); border-radius: 20px;
  padding: 2.4rem; box-shadow: 0 -12px 40px rgba(28,32,19,0.35);
}
.stack-card:nth-child(odd) { border-top: 4px solid var(--ball); }
.cmd-num { display: inline-block; font-family: "Black Ops One", Georgia, serif; font-size: 1rem; color: var(--ball); letter-spacing: 0.12em; margin-bottom: 0.8rem; }
.stack-card h3 { font-size: 1.8rem; margin: 0 0 0.5rem; color: var(--cream); }
.stack-card p { color: var(--cream-dim); margin: 0; max-width: 64ch; }

/* Course band (motif art interlude) */
.course-band { background: var(--od-deep); text-align: center; padding: clamp(3rem, 7vw, 5rem) 0; position: relative; overflow: hidden; }
.course-poles { width: min(900px, 92vw); height: auto; margin: 0 auto; }
.course-poles g { stroke: var(--ball); stroke-width: 10; opacity: 0.9; }
.course-poles rect { fill: var(--ball); opacity: 0.9; }
.js .course-poles g path { stroke-dasharray: 260; stroke-dashoffset: 260; }
.js .course-band.coursed .course-poles g path { animation: poledraw 0.8s var(--ease) forwards; }
.js .course-band.coursed .course-poles g path:nth-child(2) { animation-delay: 0.1s; }
.js .course-band.coursed .course-poles g path:nth-child(3) { animation-delay: 0.2s; }
.js .course-band.coursed .course-poles g path:nth-child(4) { animation-delay: 0.3s; }
.js .course-band.coursed .course-poles g path:nth-child(5) { animation-delay: 0.4s; }
.js .course-band.coursed .course-poles g path:nth-child(6) { animation-delay: 0.5s; }
.js .course-band.coursed .course-poles g path:nth-child(7) { animation-delay: 0.6s; }
.js .course-band.coursed .course-poles g path:nth-child(8) { animation-delay: 0.7s; }
.js .course-band.coursed .course-poles g path:nth-child(9) { animation-delay: 0.8s; }
@keyframes poledraw { to { stroke-dashoffset: 0; } }
.course-line { font-family: Georgia, serif; font-style: italic; font-size: 1.3rem; color: var(--cream-dim); margin: 1.6rem 0 0; }
.course-line em { color: var(--ball); }

/* Proof */
.proof { background: var(--khaki); }
.proof-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.4rem; margin-top: 3rem; align-items: stretch; }
.proof-feature { background: var(--od); color: var(--cream); border-radius: 20px; padding: 2.6rem; }
.proof-big { font-family: "Black Ops One", Georgia, serif; font-size: 4.5rem; color: var(--ball); font-variant-numeric: tabular-nums; line-height: 1; }
.proof-feature h3 { color: var(--cream); font-size: 1.5rem; margin: 1rem 0 0.6rem; }
.proof-feature p { color: var(--cream-dim); margin: 0; }
.proof-stack { display: grid; gap: 1.4rem; }
.proof-stack article { background: var(--khaki-wash); border: 1px solid var(--line-light); border-radius: 16px; padding: 1.6rem 1.8rem; transition: transform 0.2s var(--ease); }
.proof-stack article:hover { transform: translateX(6px); }
.proof-stack h3 { font-size: 1.15rem; margin: 0 0 0.35rem; }
.proof-stack p { margin: 0; color: #4c5232; font-size: 0.97rem; }

/* Area */
.area { background: var(--od); color: var(--cream); }
.area .section-title { color: var(--cream); }
.area address { font-style: normal; font-size: 1.25rem; line-height: 1.7; margin: 1.5rem 0; }
.area address strong { font-family: "Black Ops One", Georgia, serif; font-size: 1.5rem; }
.area p { color: var(--cream-dim); }

/* FAQ */
.faq { background: var(--khaki); }
.faq-narrow { max-width: 820px; }
.accordion { margin-top: 2.5rem; border-top: 3px solid var(--od); }
.accordion details { border-bottom: 1px solid var(--line-light); }
.accordion summary { cursor: pointer; list-style: none; font-family: "Black Ops One", Georgia, serif; font-size: 1.2rem; padding: 1.3rem 2.5rem 1.3rem 0; position: relative; display: block; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 0.4rem; top: 1.1rem; font-size: 1.7rem; color: var(--ball-deep); transition: transform 0.25s var(--ease); font-family: Georgia, serif; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details p { color: #4c5232; padding: 0 0 1.5rem; margin: 0; max-width: 62ch; }

/* Lanyard wipe (transition 3) */
.lanyard-wipe { background: var(--khaki); overflow: hidden; padding: 0; }
.lanyard-wipe span { display: block; height: 16px; background: repeating-linear-gradient(90deg, var(--ball) 0 46px, var(--od) 46px 92px); transform: scaleX(0); transform-origin: left; }
.js .lanyard-wipe.whipped span { transform: scaleX(1); transition: transform 0.9s var(--ease); }

/* Final CTA */
.final-cta { background: var(--od-deep); color: var(--cream); text-align: center; }
.final-cta .eyebrow { color: var(--ball); }
.final-cta h2 { font-size: var(--step-6); max-width: 14ch; margin-left: auto; margin-right: auto; color: var(--cream); }
.final-cta h2 em.accent { color: var(--ball); }
.cta-phone {
  display: inline-block; font-family: "Black Ops One", Georgia, serif; font-size: clamp(2.6rem, 8vw, 5rem);
  color: var(--ball); text-decoration: none; font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
  margin: 1rem 0; transition: transform 0.2s var(--ease);
}
.cta-phone:hover { transform: scale(1.03); }
.final-cta p:last-child { color: var(--cream-dim); }

/* Footer */
.site-footer { background: var(--od-deep); color: var(--cream); padding: 3.5rem 0 2rem; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.site-footer strong { font-family: "Black Ops One", Georgia, serif; font-size: 1.2rem; }
.site-footer p, .site-footer a { color: var(--cream-dim); font-size: 0.95rem; }
.site-footer a { display: block; margin-bottom: 0.4rem; text-decoration: none; }
.site-footer a:hover { color: var(--ball); }
.fine { text-align: center; font-size: 0.8rem; color: #6f7355; margin: 2.5rem 0 0; }

/* Mobile call bar */
.mobile-call {
  display: none; position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 110;
  background: var(--ball); color: var(--od-deep); text-decoration: none; font-weight: 800; font-size: 1.1rem;
  padding: 1rem; border-radius: 12px; align-items: center; justify-content: center; gap: 0.6rem;
  box-shadow: 0 12px 32px rgba(28,32,19,0.35);
}
.mobile-call svg { width: 20px; height: 20px; }

/* Reveal system (JS-gated) */
.js .reveal, .js .reveal-hero { opacity: 0; transform: translateY(16px); }
.js .revealed { opacity: 1; transform: none; transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.js .mask > span { display: inline-block; transform: translateY(112%); }
.js .hero-in .mask > span { animation: rise 0.75s var(--ease) forwards; }
.js .hero-in .mask:nth-of-type(2) > span { animation-delay: 0.12s; }
@keyframes rise { to { transform: translateY(0); } }
.js .hero-in .reveal-hero { opacity: 1; transform: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .hero-in .eyebrow.reveal-hero { transition-delay: 0.05s; }
.js .hero-in .hero-sub.reveal-hero { transition-delay: 0.45s; }
.js .hero-in .hero-ctas.reveal-hero { transition-delay: 0.58s; }
.js .hero-in .trust-row.reveal-hero { transition-delay: 0.7s; }

@media (max-width: 960px) {
  .proof-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .header-call { margin-left: auto; font-size: 0.92rem; padding: 0.6rem 0.9rem; }
}
@media (max-width: 640px) {
  .mobile-call { display: inline-flex; }
  body { padding-bottom: 5.5rem; }
  .drill-rows li { grid-template-columns: 56px 1fr; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-row { gap: 1.2rem; }
  .stack-card { top: calc(70px + var(--i) * 10px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal-hero { opacity: 1 !important; transform: none !important; }
  .js .mask > span { transform: none !important; }
  .js .weave-divider .poles path, .js .course-poles g path { stroke-dashoffset: 0 !important; }
  .js .lanyard-wipe span { transform: scaleX(1) !important; }
}
