/* mikewellman.com. Design: Claude design canvas, direction 31 (Ribbon, Broadcast).
   Colors: ink #0b0b0c, paper #f2f2f0, body #d6d6d2, muted #8a8a86, card #161616, Steelers gold #ffb612.
   Contrast (measured): body on card 12.4:1, muted on card 5.2:1, gold on ink 11.2:1, ink on gold 11.2:1. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #0b0b0c;
  --paper: #f2f2f0;
  --body: #d6d6d2;
  --muted: #8a8a86;
  --card: #161616;
  --line: #2a2a2a;
  --gold: #ffb612;
  --gold-hi: #ffcf5c;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gap: 120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 64px; scroll-padding-bottom: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--sans); line-height: 1.5; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); }
a:hover { color: var(--gold-hi); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--gold); color: var(--ink); padding: 10px 16px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; color: var(--ink); }

/* Score bar */
.bug { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: stretch; background: #111; border-bottom: 2px solid var(--gold); font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.bug > * { padding: 12px 16px; border-right: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.bug .mw { background: var(--gold); color: var(--ink); font-weight: 600; text-decoration: none; }
.bug .live { margin-left: auto; border-right: 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; animation: blink 1.6s steps(2) 3; }
@keyframes blink { 50% { opacity: .25; } }

/* Hero */
.hero { padding-top: 96px; }
.hero h1 { margin-bottom: 40px; font-size: clamp(40px, 6.4vw, 84px); line-height: .92; font-weight: 900; font-stretch: 112%; letter-spacing: -.02em; text-transform: uppercase; }
.ln { display: block; white-space: nowrap; overflow: hidden; padding-bottom: .06em; }
.up { display: inline-block; animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
.up.d1 { animation-delay: .15s; }
.up.d2 { animation-delay: .32s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.cap { display: inline-block; }
.cap-name { display: block; background: var(--gold); color: var(--ink); padding: 10px 40px 10px 18px; clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%); font-size: 30px; font-weight: 900; font-stretch: 112%; text-transform: uppercase; animation: wipe .7s cubic-bezier(.7,0,.2,1) .55s both; }
.cap-role { display: block; background: var(--card); padding: 10px 18px; font-family: var(--mono); font-size: 14px; color: var(--body); animation: wipe2 .6s cubic-bezier(.7,0,.2,1) .75s both; }
@keyframes wipe { from { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); } to { clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%); } }
@keyframes wipe2 { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Sections */
.section { padding-top: var(--gap); }
.h2 { margin-bottom: 32px; font-size: 48px; line-height: 1; font-weight: 800; font-stretch: 112%; text-transform: uppercase; }

/* Work cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 28px; }
.l3 { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: var(--paper); }
a.l3:hover { color: var(--paper); }
.bar { display: inline-block; background: var(--gold); color: var(--ink); padding: 8px 22px 8px 16px; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); font-size: 28px; font-weight: 900; font-stretch: 112%; text-transform: uppercase; transition: padding .3s; }
a.l3:hover .bar, a.l3:focus-visible .bar { padding-right: 44px; }
.cbody { display: flex; flex-direction: column; align-self: stretch; flex: 1; background: var(--card); padding: 14px 16px; font-size: 18px; line-height: 1.5; color: var(--body); }
.cmeta { display: block; margin-top: auto; padding-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.cpress { display: block; margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--gold); }

/* About */
.about { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 64px; align-items: start; }
.photo img { border-bottom: 6px solid var(--gold); width: 100%; }
.about p { margin: 0 0 20px; font-size: 22px; line-height: 1.55; color: var(--body); }
.about p:last-child { margin-bottom: 0; }

/* Doors */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-bottom: var(--gap); }
.door { display: block; text-decoration: none; border: 2px solid var(--gold); padding: 40px; color: var(--paper); }
.door:hover { color: var(--paper); border-color: var(--gold-hi); }
.door.alt { border-color: #333; }
.door.alt:hover { border-color: var(--gold); }
.door-kicker { display: block; font-family: var(--mono); font-size: 13px; color: var(--gold); margin-bottom: 16px; }
.door.alt .door-kicker { color: var(--muted); }
.door-title { display: block; font-size: 36px; font-weight: 800; font-stretch: 112%; text-transform: uppercase; line-height: 1; }
.door-sub { display: block; margin-top: 14px; font-size: 18px; color: #b8b8b4; }

/* Contact band */
.contact { background: var(--gold); color: var(--ink); }
.contact-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; padding-top: 96px; padding-bottom: 96px; }
.contact h2 { font-size: clamp(44px, 7vw, 104px); line-height: .9; font-weight: 900; font-stretch: 125%; text-transform: uppercase; }
.contact-links { display: flex; flex-direction: column; gap: 14px; font-size: 20px; }
.contact a { color: var(--ink); }
.contact a:hover { color: #3a2a00; }
.contact a:focus-visible { outline-color: var(--ink); }

/* Footer */
.foot { padding: 28px 0 96px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--paper); }

/* Bottom crawl */
.crawl { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; align-items: center; background: var(--gold); color: var(--ink); font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: .06em; animation: up-in .6s cubic-bezier(.2,.8,.2,1) 1s both; }
.cview { overflow: hidden; flex: 1; padding: 10px 0; }
.track { display: flex; width: max-content; gap: 28px; white-space: nowrap; animation: crawl 90s linear infinite; }
.crawl.paused .track { animation-play-state: paused; }
@keyframes crawl { to { transform: translateX(-50%); } }
@keyframes up-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes down-in { from { transform: translateY(-100%); } to { transform: none; } }
.bug { animation: down-in .6s cubic-bezier(.2,.8,.2,1) both; }
.cbtn { flex: none; min-height: 44px; min-width: 88px; padding: 0 16px; border: 0; background: var(--ink); color: var(--gold); font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .08em; cursor: pointer; }
.cbtn:focus-visible { outline: 3px solid var(--paper); outline-offset: -5px; }

/* Scroll reveals: fade up once an item is above the crawl. Browsers without
   scroll-driven animations just show everything.
   The text itself never goes see-through: the item slides up while a layer in
   the page color over it fades away. It looks the same as fading the item, but
   a contrast check that lands mid-reveal reads the real colors (Lighthouse
   failed the cards at 412 wide when the item's own opacity was animated). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv { position: relative; view-timeline: --rv block; view-timeline-inset: 0px 14%; animation: rv linear both; animation-timeline: --rv; animation-range: entry 0% cover 30%; }
    .rv::after { content: ""; position: absolute; inset: -2px; background: var(--ink); pointer-events: none; animation: cover linear both; animation-timeline: --rv; animation-range: entry 0% cover 30%; }
    .grid > .rv:nth-child(even), .grid > .rv:nth-child(even)::after { animation-range: entry 8% cover 34%; }
    .photo { animation: fade linear both; animation-timeline: view(block 0px 14%); animation-range: entry 0% cover 30%; }
  }
  @keyframes rv { from { transform: translateY(70px) scale(.97); } to { transform: none; } }
  @keyframes cover { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}

/* Simple pages (privacy, 404) */
.page { padding-top: 80px; padding-bottom: 80px; max-width: 860px; }
.page h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 900; font-stretch: 112%; text-transform: uppercase; line-height: .95; margin-bottom: 28px; }
.page h2 { font-size: 26px; font-weight: 800; font-stretch: 112%; text-transform: uppercase; margin: 40px 0 12px; }
.page p, .page li { font-size: 19px; line-height: 1.6; color: var(--body); }
.page .updated { font-family: var(--mono); font-size: 13px; color: var(--muted); }

@media (max-width: 820px) {
  :root { --gap: 80px; }
  .grid, .about, .doors { grid-template-columns: 1fr; }
  .about { gap: 40px; }
  .photo { max-width: 380px; }
  .bug .opt { display: none; }
  .door { padding: 28px; }
  .door-title { font-size: 28px; }
  .h2 { font-size: 38px; }
  .bar { font-size: 24px; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .ln { white-space: normal; }
  .hero { padding-top: 64px; }
  .cap-name { font-size: 24px; }
}
@media (max-height: 520px) {
  .bug, .crawl { position: static; }
  .foot { padding-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
