/* BuildDog site prototype. Static files, not part of the Next.js build.
   Colours and marks follow the BuildDog brand kit in brand/. */

:root {
  /* Brand kit palette */
  --orange: #f84924;
  --orange-hi: #ff6b32;
  --orange-deep: #d82d1c;
  --warm: #f9f1df;
  --charcoal: #211d1c;
  --graphite: #171416;
  --violet: #b18af8;
  --indigo: #181137;

  --ground: #f4eee4;
  --card: #fffcf6;
  --ink: var(--charcoal);
  --ink-2: #6f6661;
  --ink-3: #b3aaa3;
  --line: rgba(33, 29, 28, 0.09);
  --dusk: var(--graphite);
  --amber: #e2a04a;
  --green: #4daf7d;
  --radius: 28px;
  --gap: 8px;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ground); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }

/* Type: one face, modest weight, two tones. The second sentence is the muted one. */
.say { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.12; letter-spacing: -0.022em; font-weight: 460; }
.say .soft { color: var(--ink-2); display: block; }
.on-dawn .say { color: var(--warm); }
.on-dawn .say .soft { color: rgba(249, 241, 223, 0.58); }
.body { font-size: 17px; line-height: 1.5; letter-spacing: -0.008em; color: var(--ink-2); max-width: 34em; }
.body b { color: var(--ink); font-weight: 500; }
.dark .body { color: rgba(255, 255, 255, 0.55); }
.dark .body b { color: #fff; }

/* Buttons are pills. One dark, one quiet. */
.pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; transition: transform 0.2s ease, background 0.2s ease; cursor: pointer; border: 0; }
.pill:hover { transform: translateY(-1px); }
.pill.dark { background: var(--ink); color: var(--warm); }
.pill.brand { background: linear-gradient(135deg, var(--orange-hi), var(--orange) 48%, var(--orange-deep)); color: #fff; box-shadow: 0 8px 22px -10px rgba(248, 73, 36, 0.7); }
.pill.brand:hover { box-shadow: 0 10px 26px -10px rgba(248, 73, 36, 0.85); }
.pill.quiet { background: rgba(33, 29, 28, 0.06); color: var(--ink-2); }
.pill.light { background: var(--warm); color: var(--ink); }
.pill.glass { background: rgba(249, 241, 223, 0.12); color: var(--warm); box-shadow: inset 0 0 0 1px rgba(249, 241, 223, 0.14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pill svg { width: 15px; height: 15px; }

.card { background: var(--card); border-radius: var(--radius); position: relative; overflow: hidden; }
.card.dark { background: var(--graphite); color: var(--warm); }

/* The plate: graphite with the brand kit's warm halo, slash traces and grain.
   (Was the dawn plate; the class name stays so the markup does not churn.) */
.dawn { background: radial-gradient(60% 70% at 80% 48%, #49221d, #211719 67%, var(--graphite)); }
.dawn::before {
  content: ''; position: absolute; inset: -20%;
  background:
    radial-gradient(26% 30% at 72% 44%, rgba(248, 73, 36, 0.20), transparent 70%),
    radial-gradient(30% 26% at 20% 60%, rgba(180, 122, 112, 0.14), transparent 70%),
    repeating-linear-gradient(-52deg, transparent 0 190px, rgba(230, 90, 63, 0.16) 190px 191.5px, transparent 191.5px 380px);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
.dawn::after {
  /* grain, so the gradient reads as a print and not as a CSS gradient */
  content: ''; position: absolute; inset: 0; opacity: 0.14; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
/* The homepage hero uses the kit's own hero art: copy on the left, hound on the right. */
.dawn.hero-art { background: var(--graphite) url('brand/hero-card.svg') right bottom / cover no-repeat; }
.dawn.hero-art::before { background: radial-gradient(22% 26% at 74% 46%, rgba(248, 73, 36, 0.16), transparent 70%); }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-4%, 3%) scale(1.06); }
}
.dawn > * { position: relative; z-index: 1; }

/* The pane pattern from the kit, faint, for light feature cards. */
.panes::before { content: ''; position: absolute; inset: 0; background: url('brand/pane-pattern-tile.svg') 0 0 / 320px 240px; opacity: 0.45; pointer-events: none;
  -webkit-mask: radial-gradient(80% 70% at 85% 15%, #000, transparent 75%); mask: radial-gradient(80% 70% at 85% 15%, #000, transparent 75%); }
.panes > * { position: relative; }

/* The slash divider between sections. */
.slash { height: 44px; background: url('brand/slash-divider.svg') center / auto 44px no-repeat; }

.tile { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(160deg, #2e2829, var(--graphite)); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(249, 241, 223, 0.08), 0 8px 24px -8px rgba(0, 0, 0, 0.5); }
.tile img { width: 38px; height: auto; transform: translate(1px, 1px); }
.tile.big { width: 72px; height: 72px; border-radius: 19px; }
.tile.big img { width: 52px; }

/* Footer: the wordmark, a hairline, and small mono links. */
.foot { display: flex; align-items: center; gap: 20px; padding: 24px 0 28px; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.foot .mark { display: flex; align-items: center; }
.foot .mark img { height: 18px; width: auto; display: block; }
.foot .rule { flex: 1; height: 1px; background: var(--line); }
.foot nav { display: flex; gap: 20px; }
.foot nav a:hover { color: var(--ink); }

/* Top bar: the black lockup on the light ground. */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 24px; background: rgba(244, 238, 228, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.top .mark { display: flex; align-items: center; }
.top .mark img { height: 22px; width: auto; display: block; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }
.top .pill { height: 34px; padding: 0 15px; font-size: 14px; }
@media (max-width: 960px) { .top nav a:not(.pill) { display: none; } .top .mark img { height: 18px; } }

/* Things come into focus as they arrive. */
.rise { opacity: 0; transform: translateY(14px); filter: blur(8px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1), filter 0.9s ease; }
.rise.in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; filter: none; }
}
