/* ============================================================
   AUBURN SEO & ADVERTISING FIRM — Tactile Brutalist system
   Backgrounds: Paper White #F5F5F7 / True Black #000000
   Accent: clay — interaction states only, never decoration
   Type: Switzer (sans) + JetBrains Mono (meta)
   ============================================================ */

:root {
  --paper: #F5F5F7;
  --black: #000000;
  --ink: #0A0A0A;
  --ink-2: #4A4A4E;
  --ink-3: #77777C;
  --line: #0A0A0A;        /* structural 1px borders, light mode */
  --hairline: #D8D8DA;    /* recessive grid rules, light mode */
  --accent: #C1440E;      /* clay on paper — 4.7:1 */
  --sans: 'Switzer', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --pad: clamp(1rem, 4vw, 3.5rem);
}

.dark, .theme-dark {
  --paper: #000000;
  --ink: #F5F5F7;
  --ink-2: #B9B9BE;
  --ink-3: #8A8A8E;
  --line: #333333;
  --hairline: #1C1C1C;
  --accent: #E05A1A;      /* clay on black — 5.6:1 */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Paper grain — subtle CSS noise, opacity .03 */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2147483646;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: var(--paper); }

img { max-width: 100%; display: block; border-radius: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; border-radius: 0; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 0; padding: .65rem .8rem;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent);
}
input::placeholder, textarea::placeholder { color: var(--ink-3); }

/* ---- type ------------------------------------------------- */
.mono {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 400;
}
.mono b { color: var(--ink); font-weight: 600; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: .95; }

.display {
  font-size: clamp(3rem, 11vw, 12rem);
  font-weight: 600; letter-spacing: -0.045em; line-height: .88;
  text-transform: uppercase;
}
.display-2 {
  font-size: clamp(2rem, 5.5vw, 5.5rem);
  font-weight: 600; letter-spacing: -0.04em; line-height: .92;
  text-transform: uppercase;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.45; color: var(--ink-2); max-width: 34em; }

/* ---- structure -------------------------------------------- */
.wrap { padding-left: var(--pad); padding-right: var(--pad); max-width: 1680px; margin: 0 auto; }
.section { border-top: 1px solid var(--line); position: relative; padding: clamp(3rem, 7vw, 6.5rem) 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); flex-wrap: wrap;
}

/* crosshair grid marks (+) at section corners */
.xh { position: absolute; width: 13px; height: 13px; pointer-events: none; color: var(--ink-3); }
.xh::before, .xh::after { content: ''; position: absolute; background: currentColor; }
.xh::before { left: 6px; top: 0; width: 1px; height: 13px; }
.xh::after { top: 6px; left: 0; height: 1px; width: 13px; }
.xh.tl { top: -7px; left: calc(var(--pad) - 7px); }
.xh.tr { top: -7px; right: calc(var(--pad) - 7px); }

/* ---- icons ------------------------------------------------ */
.hgi { width: 1.25em; height: 1.25em; display: block; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* ---- buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  border: 1px solid var(--line); padding: .8rem 1.4rem;
  font-weight: 500; font-size: .95rem; letter-spacing: .01em;
  transition: background 0ms, color 0ms, border-color 0ms;
  user-select: none;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:active { transform: translate(1px, 1px); }
.btn-solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn .hgi { width: 1.05em; height: 1.05em; }

.tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.tag::before { content: '['; } .tag::after { content: ']'; }

/* ---- header ----------------------------------------------- */
.site-header {
  display: flex; align-items: stretch; justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 90; background: var(--paper);
}
.brand { display: flex; align-items: center; gap: .7rem; padding: 1rem var(--pad) 1rem var(--pad); font-weight: 700; letter-spacing: -0.02em; font-size: 1.05rem; text-transform: uppercase; }
.brand .hgi { width: 1.3em; height: 1.3em; }
.site-nav { display: flex; align-items: stretch; }
.site-nav a {
  display: flex; align-items: center; padding: 0 1.1rem;
  font-size: .9rem; font-weight: 500; border-left: 1px solid var(--line);
  transition: background 100ms, color 100ms;
}
.site-nav a:hover { background: var(--ink); color: var(--paper); }
.site-nav a.nav-cta { background: var(--ink); color: var(--paper); gap: .5rem; padding: 0 1.4rem; }
.site-nav a.nav-cta:hover { background: var(--accent); color: #fff; }
.header-meta { display: flex; align-items: center; padding: 0 1.2rem; border-left: 1px solid var(--line); }
.menu-btn { display: none; border-left: 1px solid var(--line); padding: 0 1.2rem; align-items: center; }

/* ---- dense list rows (anti-SaaS: lists over cards) --------- */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 4.5rem 1.4fr 2fr auto;
  gap: 1.5rem; align-items: center;
  padding: 1.6rem 0; border-bottom: 1px solid var(--line);
  transition: background 100ms, color 100ms; position: relative;
}
a.row:hover, .row.hover:hover { background: var(--ink); color: var(--paper); }
a.row:hover .mono, .row.hover:hover .mono { color: inherit; opacity: .65; }
a.row:hover .row-arrow { color: var(--accent); }
.row-idx { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); }
.row-title { font-size: clamp(1.15rem, 2vw, 1.7rem); font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: center; gap: .8rem; }
.row-desc { color: var(--ink-2); font-size: .95rem; max-width: 46em; }
a.row:hover .row-desc { color: inherit; opacity: .8; }
.row-arrow { justify-self: end; }
.row-arrow .hgi { width: 1.4em; height: 1.4em; }

/* ---- stat strips ------------------------------------------ */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.stat-strip > div { padding: 1.2rem 1.4rem; border-right: 1px solid var(--line); }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip .num { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }

/* ---- tables ----------------------------------------------- */
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--hairline); font-size: .9rem; }
th { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; border-bottom: 1px solid var(--line); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- forms ------------------------------------------------ */
.field { display: grid; gap: .45rem; }
.field label { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ---- footer ----------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.2rem 0 2.6rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-grid a:hover { color: var(--accent); }

/* ---- marquee status line ----------------------------------- */
.statusline { border-top: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: .55rem 0; }
.statusline .inner { display: inline-block; animation: tick 40s linear infinite; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .statusline .inner { animation: none; } }

/* ---- reveal ------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 320ms, transform 320ms; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- responsive ------------------------------------------- */
@media (max-width: 900px) {
  .row { grid-template-columns: 3rem 1fr auto; }
  .row-desc { grid-column: 2 / 3; grid-row: 2; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip > div:nth-child(2n) { border-right: 0; }
  .stat-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex; position: fixed; inset: 0; top: 57px; background: var(--paper);
    flex-direction: column; align-items: stretch; z-index: 89;
  }
  .site-nav.open a { border-left: 0; border-bottom: 1px solid var(--line); padding: 1.2rem var(--pad); font-size: 1.3rem; }
  .menu-btn { display: flex; }
  .header-meta { display: none; }
}

/* ---- spice: scroll-driven motion (respects prefers-reduced-motion) ---- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--accent); z-index: 2147483000; pointer-events: none;
}

/* word-by-word headline reveal */
.wsplit .w { display: inline-block; overflow: hidden; vertical-align: bottom; }
.wsplit .w > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 560ms cubic-bezier(.19, 1, .22, 1);
  transition-delay: calc(var(--wi) * 45ms);
}
.wsplit.in .w > span { transform: none; }

/* generic auto-reveal (rows, stat cells, panels) */
.arv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms cubic-bezier(.19, 1, .22, 1), transform 420ms cubic-bezier(.19, 1, .22, 1);
  transition-delay: calc(var(--ai, 0) * 60ms);
}
.arv.in { opacity: 1; transform: none; }

/* section index labels get an accent tick that draws in */
.section-head .mono { position: relative; padding-left: 1.1rem; }
.section-head .mono::before {
  content: ''; position: absolute; left: 0; top: 50%; height: 1px;
  width: 0; background: var(--accent);
  transition: width 420ms cubic-bezier(.19, 1, .22, 1) 120ms;
}
.section-head .mono.in::before { width: .7rem; }

@media (prefers-reduced-motion: reduce) {
  #scroll-progress { display: none; }
  .wsplit .w > span { transform: none; transition: none; }
  .arv { opacity: 1; transform: none; transition: none; }
  .section-head .mono::before { width: .7rem; transition: none; }
}
