/* HC2 Creations LLC — hc2studios.com
   Palette: warm desert neutrals + copper (docs/brand.md).
   Motion: one easing curve, reveal on approach, nothing bounces.
   No frameworks, no web fonts, no build step. */

:root {
  --bg: #faf7f2; --bg-alt: #f2ece2; --surface: #ffffff;
  --text: #1a1714; --muted: #6b6259; --line: #e3dacd;
  --accent: #a8481a; --accent-lo: #f6e8dd; --on-accent: #fffaf6;
  --radius: 16px; --maxw: 68rem; --measure: 36rem;
  --ease: cubic-bezier(.16,1,.3,1);
  --dur: 900ms;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110f; --bg-alt: #1b1714; --surface: #1e1a17;
    --text: #f3eee7; --muted: #a89b8d; --line: #322b25;
    --accent: #e8965c; --accent-lo: #2a1d14; --on-accent: #1a1714;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
p { margin: 0 0 18px; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

/* reveal system — visible by default; JS opts in, so a dead script
   can never leave a blank page */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0,22px,0);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: calc(var(--i,0) * 90ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-rule] { transform: scaleX(0); transform-origin: left; transition: transform 1100ms var(--ease); }
.js [data-rule].in { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-rule] { opacity: 1 !important; transform: none !important; transition: none !important; }
  h1 .w > span, .mark rect, .scroll-cue i::after { animation: none !important; transform: none !important; }
}

/* header */
header.site {
  position: sticky; top: 0; z-index: 50; padding: 16px 0;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 400ms var(--ease);
}
header.site.stuck { border-bottom-color: var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(var(--p,0)); transform-origin: left; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.logo svg { display: block; flex: none; }
.logo .lockup { display: flex; flex-direction: column; line-height: 1; }
.logo .name { font-weight: 660; letter-spacing: -0.015em; font-size: 1rem; }
.logo .sub { font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; font-weight: 600; }
header.site nav { display: flex; gap: 26px; }
header.site nav a { font-size: .92rem; color: var(--muted); text-decoration: none; font-weight: 500; transition: color 300ms var(--ease); }
header.site nav a:hover { color: var(--text); }
.mark rect { animation: bar 1200ms var(--ease) backwards; }
.mark rect:nth-of-type(1) { animation-delay: 80ms; }
.mark rect:nth-of-type(2) { animation-delay: 180ms; }
.mark rect:nth-of-type(3) { animation-delay: 280ms; }
@keyframes bar { from { opacity: 0; transform: translateY(4px); } }

/* hero */
.hero { position: relative; min-height: min(86svh, 760px); display: flex; align-items: center; padding: 72px 0 96px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% -10% auto -10%; height: 130%; pointer-events: none;
  background:
    radial-gradient(60% 55% at 22% 18%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(50% 50% at 85% 5%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%);
  filter: blur(18px);
  transform: translate3d(0, calc(var(--sy,0) * 0.12px), 0);
}
.hero .wrap { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-size: .7rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-lo); padding: 7px 14px; border-radius: 999px; margin-bottom: 30px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
h1 { font-size: clamp(2.4rem, 7.2vw, 4.6rem); line-height: 1.02; letter-spacing: -0.038em; font-weight: 700; margin: 0 0 28px; max-width: 15ch; }
h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
h1 .w > span { display: inline-block; animation: word 1100ms var(--ease) backwards; }
@keyframes word { from { transform: translateY(105%); } }
.lede { font-size: clamp(1.1rem, 2.1vw, 1.32rem); color: var(--muted); max-width: 40rem; }
.scroll-cue { position: absolute; left: 28px; bottom: 26px; display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { display: block; width: 1px; height: 26px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: trickle 2.4s var(--ease) infinite; }
@keyframes trickle { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); } }

/* sections */
section { padding: 104px 0; position: relative; }
section.banded { background: var(--bg-alt); }
section.banded::before, section.banded::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
section.banded::before { top: 0; } section.banded::after { bottom: 0; }
.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 44px; }
.sec-head h2 { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0; white-space: nowrap; }
.sec-head .rule { flex: 1; height: 1px; background: var(--line); }

/* work */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; margin-bottom: 20px;
  transition: transform 700ms var(--ease), box-shadow 700ms var(--ease), border-color 700ms var(--ease); }
.card:last-child { margin-bottom: 0; }
@media (hover: hover) {
  .card:hover { transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
    box-shadow: 0 22px 60px -32px color-mix(in srgb, var(--accent) 55%, transparent); }
}
.card-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.card h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.025em; margin: 0; font-weight: 680; }
.tag { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tag.live { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.links { margin-top: 26px; display: flex; gap: 24px; flex-wrap: wrap; font-size: .95rem; }
.links a { display: inline-flex; align-items: center; gap: 7px; }
.links a .arw { transition: transform 400ms var(--ease); }
.links a:hover .arw { transform: translateX(4px); }

/* principles */
.grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 44px; }
.grid3 h3 { font-size: 1.06rem; margin: 0 0 10px; letter-spacing: -0.012em; }
.grid3 p { font-size: .96rem; color: var(--muted); }
.num { font-size: .72rem; font-weight: 700; color: var(--accent); letter-spacing: .12em; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.num::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* facts */
dl.meta { margin: 0; max-width: 42rem; }
dl.meta div { display: flex; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
dl.meta div:last-child { border-bottom: 0; }
dl.meta dt { color: var(--muted); min-width: 9rem; margin: 0; font-size: .94rem; }
dl.meta dd { margin: 0; }

/* contact */
.mailto { display: inline-block; font-size: clamp(1.3rem, 3.6vw, 2.1rem); letter-spacing: -0.028em; font-weight: 660;
  text-decoration: none; color: var(--text); padding-bottom: 4px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 2px; background-repeat: no-repeat; background-position: left 88%;
  transition: background-size 620ms var(--ease), color 400ms var(--ease); }
.mailto:hover { background-size: 100% 2px; color: var(--accent); }

/* footer */
footer.site { border-top: 1px solid var(--line); padding: 44px 0 60px; color: var(--muted); font-size: .92rem; }
footer.site .row { display: flex; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--accent); }
footer.site .fl { display: flex; gap: 22px; flex-wrap: wrap; }

/* legal */
.legal { padding: 76px 0 48px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); max-width: none; margin-bottom: 10px; }
.legal h2 { font-size: 1.14rem; letter-spacing: -0.012em; color: var(--text); margin: 46px 0 14px; font-weight: 660; }
.legal ul { padding-left: 1.2em; max-width: var(--measure); }
.legal li { margin-bottom: 10px; }
.updated { color: var(--muted); font-size: .92rem; margin-bottom: 36px; }

@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  section { padding: 72px 0; }
  .hero { min-height: auto; padding: 48px 0 72px; }
  .card { padding: 28px; }
  header.site nav { gap: 16px; }
  header.site nav a { font-size: .86rem; }
  .scroll-cue { display: none; }
}
