/* wiresage.dev: plain CSS, no build step. */

/* ── Tokens ─────────────────────────────────────────────── */

:root {
  --ivory: #faf9f5; /* page */
  --paper: #f3f0e7; /* raised surface */
  --ink: #141413;   /* text, strong rules */
  --ink2: #3d3d3a;  /* secondary text */
  --mute: #6b6a64;  /* tertiary text */
  --rule: #e2ded3;  /* hairlines */
  --clay: #c15f3c;  /* accent */
  --clayt: #b0532f; /* accent for text and links (contrast-safe) */

  --sans: Outfit, system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

/* ── Base ───────────────────────────────────────────────── */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  color: var(--ink);
  font: 400 18px/1.62 var(--serif);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--clayt);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ── Header ─────────────────────────────────────────────── */

.bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  border-bottom: 1px solid var(--rule);
}

.bar a {
  font: 500 15px var(--sans);
  color: var(--ink2);
  text-decoration: none;
}

.bar a:hover {
  color: var(--clayt);
}

/* The logo is inline SVG so its three arcs can animate. */
.logo {
  height: 30px;
  width: auto;
  display: block;
  overflow: visible;
}

.la {
  animation: laIn 0.7s ease-out both;
}

.la1 {
  animation-delay: 0.45s;
}

.la2 {
  animation-delay: 0.65s;
}

.la3 {
  animation-delay: 0.85s;
}

.logo:hover .la {
  animation: ping 1.1s ease-in-out both;
}

.logo:hover .la2 {
  animation-delay: 0.14s;
}

.logo:hover .la3 {
  animation-delay: 0.28s;
}

/* A short clay "signal" travels along the header rule. */
.wire::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 48px;
  height: 2px;
  background: var(--clay);
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  animation: run 7s ease-in-out 1.2s infinite;
}

/* ── Main: text on the left, mark on the right ──────────── */

main.wrap {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

.txt {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* The text column rises into place on load, one block after another. */
.txt > * {
  animation: rise 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.txt > :nth-child(1) {
  animation-delay: 0.1s;
}

.txt > :nth-child(2) {
  animation-delay: 0.2s;
}

.txt > :nth-child(3) {
  animation-delay: 0.32s;
}

.txt > :nth-child(4) {
  animation-delay: 0.44s;
}

.kick {
  font: 500 13px var(--mono);
  color: var(--clayt);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.kick::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
  animation: blink 2.4s ease-in-out infinite;
}

h1 {
  font: 600 clamp(40px, 5.4vw, 72px)/1.02 var(--sans);
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

.abs {
  font-size: 20px;
  color: var(--ink2);
  max-width: 640px;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 15px var(--sans);
  padding: 12px 18px;
  border-radius: 6px;
  text-decoration: none;
  background: var(--ink);
  color: var(--ivory);
  border: 1px solid var(--ink);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--ivory);
  transform: translateY(-1px);
}

/* ── The mark: pops in, then its three arcs pulse in sequence ── */

.art {
  aspect-ratio: 1;
  width: 100%;
  max-width: 380px;
  justify-self: end;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pop 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both;
}

.art svg {
  width: 78%;
  height: 78%;
  display: block;
}

.a {
  animation: sig 2.4s ease-in-out infinite;
}

.a2 {
  animation-delay: 0.2s;
}

.a3 {
  animation-delay: 0.4s;
}

/* ── Footer ─────────────────────────────────────────────── */

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  padding-bottom: 28px;
  border-top: 1px solid var(--rule);
  font: 400 12.5px var(--mono);
  color: var(--mute);
}

/* ── Keyframes ──────────────────────────────────────────── */

@keyframes sig {
  0%, 100% { opacity: 0.18; }
  25%, 65% { opacity: 1; }
}

@keyframes blink {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes laIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ping {
  0%, 100% { opacity: 1; }
  35% { opacity: 0.15; }
}

@keyframes run {
  0% { left: 0; opacity: 0; }
  6% { opacity: 1; }
  52% { left: calc(100% - 48px); opacity: 1; }
  58%, 100% { left: calc(100% - 48px); opacity: 0; }
}

/* ── Responsive and motion ──────────────────────────────── */

@media (max-width: 860px) {
  main.wrap {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .art {
    justify-self: start;
    max-width: 240px;
    order: -1;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
