/* agencyIP — v3 redesign, 2026-07-23.
   Rebuilt after Gabe's v2 rejection: "basically the same default color vibe
   you do for all my apps... feels gamer/spacey, not an AI company vibe."
   That v2 (dark bg, blue-violet gradient orbs, particle canvas,
   glassmorphism) is, on reflection, exactly the generic-AI-startup template
   Pistol's own design canon calls out as cliche ("gradient backgrounds that
   aren't photos read as: this is a tech startup, not a [considered] brand").

   v3 direction, grounded in three things instead of a borrowed AI-genre
   look:
   1. The REAL agencyIP logo colors, sampled directly from the logo file —
      orange #F58933, near-black #231F20. No invented blue/violet.
   2. Real research (Harvey AI, Ironclad, Hebbia, Linear) on what current,
      non-cliche premium AI/legal-tech design actually looks like: light,
      editorial, serif-plus-sans pairing, generous whitespace, purposeful
      (not decorative) motion, no floating glass/shadow cards.
   3. A motif specific to what agencyIP actually does — patent/technical
      line-drawings (leader lines, reference numerals, "FIG." captions) —
      instead of a generic "AI" visual (which agencyIP isn't; it's an IP
      monetization firm, not a model company). Specific and honest beats
      generic and techy, per Pistol's canon.
*/
:root{
  --paper:#FAF6F0;
  --paper-2:#F1E9DC;
  --ink:#1C1A18;
  --ink-2:#231F20;
  --slate:#6B6560;
  --slate-dim:#8B8479;
  --line:rgba(28,26,24,0.14);
  --line-soft:rgba(28,26,24,0.08);
  --orange:#F58933;
  --orange-deep:#D9701F;
  --cream:#FFFDF9;
  --radius:12px;
  --radius-sm:8px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Inter', sans-serif;
  color:var(--ink);
  background:var(--paper);
  line-height:1.6;
}
h1,h2,h3,h4{
  font-family:'Instrument Serif', Georgia, serif;
  font-weight:400;
  letter-spacing:-0.005em;
  color:var(--ink);
}
.mono{ font-family:'IBM Plex Mono', monospace; }
a{ color:inherit; }
img{ max-width:100%; display:block; }

.reveal{ opacity:0; transform:translateY(24px); transition:opacity .8s cubic-bezier(.16,.84,.44,1), transform .8s cubic-bezier(.16,.84,.44,1); }
.reveal.in-view{ opacity:1; transform:translateY(0); }

/* Faint blueprint grid — the one persistent texture, very low opacity.
   Evokes technical/patent drafting paper, not a generic dot-grid. Given a
   very slow continuous drift (60s loop, ~1 grid-cell of travel) so the
   hero never sits perfectly still even before the user scrolls or moves
   the mouse — ambient, barely-conscious motion under everything else. */
.blueprint-bg{
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size:44px 44px;
  animation:gridDrift 60s linear infinite;
}
@keyframes gridDrift{ to{ background-position:44px 44px; } }

/* Fixed top reading-progress rail — fills left to right with scroll depth.
   Small, persistent, always-present motion signal (site.js sets width%). */
.scroll-progress{
  position:fixed; top:0; left:0; height:3px; width:0%; background:var(--orange);
  z-index:200; transition:width .1s linear;
}

/* ---- HEADER ---- */
header{
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 48px; position:sticky; top:0; z-index:100;
  background:rgba(250,246,240,0.9); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
header img{ height:28px; }
nav{ display:flex; gap:8px; align-items:center; }
nav a{
  color:var(--ink); text-decoration:none; font-size:14px; font-weight:500;
  position:relative; padding:8px 14px;
}
nav a:not(.cta-link)::after{
  content:''; position:absolute; left:14px; right:14px; bottom:2px; height:1px;
  background:var(--orange); transform:scaleX(0); transform-origin:left; transition:transform .25s ease;
}
nav a:not(.cta-link):hover::after{ transform:scaleX(1); }
nav a.cta-link{
  color:var(--cream); background:var(--ink); border-radius:var(--radius-sm); margin-left:8px;
  transition:background .2s ease;
}
nav a.cta-link:hover{ background:var(--orange-deep); }
.hamburger{ display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px; }
.hamburger span{ width:24px; height:2px; background:var(--ink); display:block; }

/* ---- HERO ----
   Asymmetric, not centered — headline left, original patent-figure line
   diagram right. The diagram "drafts itself in" on load (stroke-dashoffset
   animation on the leader lines) — purposeful motion tied to the theme,
   not ambient decoration. */
.hero{
  padding:96px 48px 88px; position:relative;
}
/* Subtle warm gradient wash behind the blueprint grid — adds depth per
   Gabe's Aura reference (soft gradient, not flat) without reintroducing
   the rejected dark/blue-violet look. Stays entirely in the brand's own
   warm-orange family. */
.hero::before{
  content:''; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:radial-gradient(ellipse 70% 60% at 82% 8%, rgba(245,137,51,0.10) 0%, rgba(245,137,51,0) 60%),
             radial-gradient(ellipse 50% 50% at 0% 100%, rgba(245,137,51,0.06) 0%, rgba(245,137,51,0) 65%);
}
.hero > *{ position:relative; z-index:1; }
.hero-grid{
  display:grid; grid-template-columns:1.1fr 0.9fr; gap:40px; align-items:center;
  max-width:1200px; margin:0 auto; perspective:1400px;
}
.eyebrow{
  font-family:'IBM Plex Mono', monospace; font-size:11.5px; font-weight:500; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--orange-deep); margin-bottom:20px; display:inline-flex; align-items:center; gap:10px;
}
.eyebrow::before{ content:''; width:18px; height:1px; background:var(--orange); display:inline-block; }
.hero h1{ font-size:76px; line-height:1.04; margin:0 0 26px; max-width:640px; }
.hero h1 em{ font-style:italic; color:var(--orange-deep); }
.hero p.lede{ font-size:18px; color:var(--slate); max-width:480px; margin-bottom:38px; line-height:1.7; }
.hero-cta{ display:flex; gap:16px; align-items:center; flex-wrap:wrap; }
.hero-diagram{ position:relative; will-change:transform; transition:transform .15s ease-out; transform-style:preserve-3d; }
.hero-diagram svg{ width:100%; height:auto; overflow:visible; }
.draw-path{ stroke-dasharray:1; stroke-dashoffset:1; }
/* NOTE: keep every transition this element might need in ONE declaration
   per rule — `transition` is a shorthand, so a later same-specificity rule
   that sets it again (e.g. the hover-trace rule below) silently replaces
   this one instead of merging, which killed the draw-in animation the
   first time this was built. */
.draw-path.drawn{ transition:stroke-dashoffset 1.6s cubic-bezier(.16,.84,.44,1), stroke-width .25s ease, stroke .25s ease; stroke-dashoffset:0 !important; }
/* After the initial draw finishes, leader lines get a continuous "flow" —
   marching dashes suggesting value moving through the line toward the
   result node. Ongoing motion, not a one-shot load animation. */
.draw-path.leader.flowing{ animation:flowDash 1.1s linear infinite; }
@keyframes flowDash{ to{ stroke-dashoffset:-11; } }
/* Hover-trace: hovering a category node highlights its path + the
   destination node — small interactive moment, not purely decorative. */
.draw-path.leader.active{ stroke-width:2.2; stroke:var(--orange); }
.fig-node.value{ transition:filter .25s ease; }
.fig-node.value.active rect{ stroke:var(--orange-deep); stroke-width:2; }
.fig-node.frame rect{ pointer-events:all; }
/* Slight spring overshoot on settle — a snappier, more "engineered" feel
   (Gabe liked Ramp's motion precision) instead of a plain linear fade. */
.fig-node{ opacity:0; transform:scale(0.85); transform-origin:center; transition:opacity .5s ease, transform .55s cubic-bezier(.34,1.56,.64,1); }
.fig-node.drawn{ opacity:1; transform:scale(1); }

/* ---- BUTTONS ----
   One filled (brand orange — this is normal, expected register for B2B
   tech CTAs, not the ghost-only luxury-real-estate rule) + one quiet text
   link. No gradients, no glow, no shadow tricks. */
/* Transform transition is fast/linear-ish (not springy) because site.js
   drives it continuously on mousemove for a magnetic-pull effect — a
   spring easing there would fight the next frame's target and feel
   jittery instead of smooth. Release back to rest still gets a touch of
   spring via the .btn-reset class site.js adds on mouseleave. */
.btn{
  display:inline-block; font-family:'Inter'; font-weight:600; font-size:14px;
  padding:15px 30px; text-decoration:none; cursor:pointer; border-radius:var(--radius-sm);
  transition:background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease-out;
}
.btn.btn-reset{ transition:background .2s ease, color .2s ease, border-color .2s ease, transform .45s cubic-bezier(.34,1.56,.64,1); }
.btn-primary{ background:var(--orange); color:var(--cream); border:1px solid var(--orange); }
.btn-primary:hover{ background:var(--orange-deep); border-color:var(--orange-deep); }
.btn-text{ color:var(--ink); border-bottom:1px solid var(--ink); padding:15px 2px; }
.btn-text:hover{ color:var(--orange-deep); border-color:var(--orange-deep); }

/* ---- SECTION ---- */
section{ padding:104px 48px; }
.section-alt{ background:var(--paper-2); }
.section-dark{ background:var(--ink-2); color:var(--cream); }
.section-dark h2, .section-dark h1{ color:var(--cream); }
.section-head{ max-width:620px; margin-bottom:60px; }
.section-head .eyebrow{ margin-bottom:16px; }
.section-head h2{ font-size:42px; }

/* ---- FIGURE CARDS (services) ----
   No floating white shadow cards (the "AI slop" pattern research flagged).
   Instead: an open row with a thin top rule per card, patent-figure-style
   icon (frame + leader line + reference numeral), text below. */
.cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:48px; max-width:1100px; margin:0 auto; }
.card{ padding-top:22px; border-top:1px solid var(--line); transition:border-color .3s ease; }
.card:hover{ border-color:var(--orange); }
.card .fig-icon{ margin-bottom:24px; transition:transform .35s cubic-bezier(.34,1.56,.64,1); }
.card:hover .fig-icon{ transform:scale(1.06); }
.card:hover .fig-icon .draw-path{ stroke-width:1.7; }
.card .fig-label{ font-size:11px; color:var(--slate-dim); letter-spacing:0.1em; margin-bottom:10px; display:block; }
.card h3{ font-size:23px; margin-bottom:12px; }
.card p{ font-size:15px; color:var(--slate); line-height:1.7; }

/* ---- ABOUT (editorial two-column + "claims" list) ---- */
.about-grid{ display:grid; grid-template-columns:1fr 1fr; gap:72px; max-width:1100px; margin:0 auto; align-items:start; }
.about-lede{ position:sticky; top:120px; }
.about-lede p{ font-size:20px; line-height:1.55; font-family:'Instrument Serif', serif; color:var(--ink); margin-bottom:28px; }
.about-lede .tag{
  display:inline-block; margin-top:4px; font-family:'IBM Plex Mono', monospace; font-size:11px;
  letter-spacing:0.08em; color:var(--orange-deep); border:1px solid var(--line); border-radius:var(--radius-sm); padding:7px 14px;
}
.claims{ display:flex; flex-direction:column; }
.claim{ padding:22px 0; border-bottom:1px solid var(--line); }
.claim:first-child{ padding-top:0; }
/* Reveal per-claim (not the whole list at once) so they stagger in one at
   a time while scrolling — was previously one block fading up together,
   which read as static/flat. The num label's leader-dash draws in first,
   same drafting-line language as the figure diagrams, before the text
   settles — small but makes the whole list feel engineered, not just
   listed. */
.claim .num{
  font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--orange-deep); letter-spacing:0.08em;
  margin-bottom:8px; display:flex; align-items:center; gap:8px;
}
.claim .num::before{
  content:''; width:0; height:1px; background:var(--orange-deep); display:inline-block;
  transition:width .5s cubic-bezier(.16,.84,.44,1);
}
.claim.in-view .num::before{ width:16px; }
.claim h4{ font-size:18px; font-family:'Inter'; font-weight:600; margin-bottom:6px; letter-spacing:0; }
.claim p{ font-size:14.5px; color:var(--slate); line-height:1.65; }

/* ---- CONTACT (the one dark band — confident close, mirrors the
   Sherwood-family footer convention without making the whole site dark) ---- */
.contact-wrap{ max-width:640px; margin:0 auto; text-align:left; }
.contact-wrap .eyebrow{ color:var(--orange); }
.contact-wrap h2{ font-size:44px; margin-bottom:18px; }
.contact-wrap p{ color:rgba(255,253,249,0.72); font-size:16px; max-width:460px; margin-bottom:8px; }
.contact-methods{ display:flex; gap:56px; margin-top:40px; flex-wrap:wrap; }
.contact-methods .label{ font-family:'IBM Plex Mono', monospace; font-size:11px; text-transform:uppercase; letter-spacing:0.1em; color:rgba(255,253,249,0.5); margin-bottom:8px; }
.contact-methods .value{ font-size:19px; font-weight:600; }
.contact-methods .value a{ text-decoration:none; }
.contact-methods .value a:hover{ color:var(--orange); }
.contact-wrap .hero-cta{ margin-top:40px; }
.section-dark .btn-text{ color:var(--cream); border-color:rgba(255,253,249,0.4); }
.section-dark .btn-text:hover{ color:var(--orange); border-color:var(--orange); }

/* ---- FOOTER ---- */
footer{
  background:var(--ink-2); color:var(--cream); padding:32px 48px;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px;
  border-top:1px solid rgba(255,253,249,0.1);
}
footer img{ height:22px; opacity:0.9; }
footer .fine{ font-family:'IBM Plex Mono', monospace; font-size:11px; color:rgba(255,253,249,0.45); }
footer .fine a{ color:rgba(255,253,249,0.65); text-decoration:none; }
footer .fine a:hover{ color:var(--orange); }

/* ---- RESPONSIVE ---- */
@media (max-width:900px){
  header{ padding:16px 24px; }
  nav{
    display:none; position:absolute; top:100%; left:0; right:0;
    flex-direction:column; background:var(--paper); border-bottom:1px solid var(--line);
    padding:8px 24px 20px; gap:8px; align-items:flex-start;
  }
  nav.open{ display:flex; }
  .hamburger{ display:flex; }
  .hero{ padding:64px 24px 56px; }
  .hero-grid{ grid-template-columns:1fr; gap:48px; }
  .hero h1{ font-size:42px; }
  .hero p.lede{ font-size:16px; }
  section{ padding:64px 24px; }
  .section-head h2{ font-size:30px; }
  .cards{ grid-template-columns:1fr; gap:40px; }
  .about-grid{ grid-template-columns:1fr; gap:40px; }
  .about-lede{ position:static; }
  .contact-methods{ gap:32px; }
  .contact-wrap h2{ font-size:32px; }
  footer{ flex-direction:column; text-align:center; }
}

/* ---- PASSWORD GATE LOGIN PAGE (styling reference only — real page is
   generated inline by functions/_middleware.js) ---- */

/* Sister-company tag became a link to sherwoodea.com (2026-11-11). Keep it
   reading as the same label, with a quiet hover cue. */
a.tag{ text-decoration:none; transition:color .2s ease; }
a.tag:hover{ color:#F58933; }

/* ---- EisnerAmper combination band (2026-11-19) ---------------------------
   Same job as the band under sherwoodea.com's hero, drawn in agencyIP's own
   patent-sheet language: cream strip, hairline rules, mono tag. */
.announce-band{ padding:26px 48px; background:var(--cream); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.announce-inner{ max-width:none; margin:0; display:flex; align-items:center; justify-content:space-between; gap:32px; }
.announce-copy{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.announce-tag{ font-size:11px; letter-spacing:0.12em; text-transform:uppercase; color:var(--orange-deep);
  border:1px solid var(--orange); border-radius:var(--radius-sm); padding:5px 10px; white-space:nowrap; }
.announce-band p{ margin:0; font-size:15.5px; line-height:1.6; color:var(--ink); max-width:68ch; }
.announce-band .btn{ flex:none; }
@media (max-width:900px){
  .announce-band{ padding:22px 24px; }
  .announce-inner{ flex-direction:column; align-items:flex-start; gap:18px; }
  .announce-band .btn{ width:100%; text-align:center; }
}
