/* ---------- tokens ---------- */
:root {
  --paper: #faf9f6;
  --ink: #2f4fa8;          /* blue ink accent */
  --ink-soft: #e8f0fc;
  --text: #111;
  --muted: #666;
  --line: #cfcfcf;
  --card: #f8f8f7;
  --grid: rgba(47, 79, 168, 0.06);
  --type: "Special Elite", "Courier New", monospace;
  --mono: "Cousine", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font: 15px/1.75 var(--mono);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow-x: hidden;
}
a { color: var(--ink); }
img { max-width: 100%; display: block; }
.defs { position: absolute; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 52px) 20px;
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(4px);
}
.brand {
  font: 22px var(--type); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.site-header nav { display: flex; gap: clamp(12px, 2.5vw, 32px); }
.site-header nav a {
  font: 16px var(--type); text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none; padding: 2px 4px;
}
.site-header nav a:hover { background: var(--ink); color: #fff; }
.ink-line {
  position: absolute; left: 4px; right: 4px; bottom: 0; height: 3px;
  background: var(--ink); filter: url(#rough); opacity: .9;
}

main { max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 2vw, 24px); }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 9vw, 120px) 0 40px; max-width: 1100px; margin: 0 auto; }
.typed {
  font: clamp(48px, 7vw, 72px)/1 var(--type); color: var(--ink);
  margin: 0 0 36px clamp(0px, 4vw, 40px); min-height: 1em;
}
.caret { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-grid {
  display: grid; grid-template-columns: minmax(240px, 360px) 1fr;
  gap: clamp(28px, 5vw, 70px); align-items: center;
}
.polaroid {
  position: relative; margin: 0; padding: 18px 18px 54px;
  transform: rotate(-2.5deg); transition: transform .4s ease;
}
.polaroid:hover { transform: rotate(0.5deg) scale(1.02); }
.polaroid-paper {
  position: absolute; inset: 0; background: #f1f0ec;
  box-shadow: 0 10px 28px rgba(0,0,0,.14); filter: url(#torn);
}
.polaroid img { position: relative; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.polaroid figcaption {
  position: absolute; left: 0; right: 0; bottom: 14px; text-align: center;
  font: 15px var(--type); color: var(--ink);
}

.crumpled {
  position: relative; padding: clamp(28px, 5vw, 64px);
  font-size: 16px;
}
.crumpled::before {
  content: ""; position: absolute; inset: -10px; z-index: -1;
  background-color: #fbfbfa;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.011' numOctaves='5' seed='11'/%3E%3CfeDiffuseLighting lighting-color='%23fff' surfaceScale='3.2'%3E%3CfeDistantLight azimuth='225' elevation='52'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  background-size: cover; background-blend-mode: multiply;
  filter: url(#torn); opacity: .95;
  box-shadow: 0 6px 30px rgba(0,0,0,.07);
}
.crumpled p { margin: 0 0 14px; }
.crumpled p:first-child { font-weight: 700; }

/* ---------- section labels ---------- */
.section { padding: clamp(48px, 7vw, 90px) 0 0; }
.section-label {
  display: flex; justify-content: space-between; align-items: end;
  border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 44px;
}
.section-label h2 { margin: 0; font: 15px var(--type); color: var(--ink); letter-spacing: .08em; }
.label-link { font: 16px var(--type); text-decoration: none; }
.label-link:hover { background: var(--ink); color: #fff; }

/* ---------- venture cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.card { background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card-media { position: relative; padding: 44px 36px 40px; border-bottom: 1px solid var(--line); }
.card-media .scrap {
  position: relative; height: 210px; display: grid; place-items: center;
}
.card-media .scrap::before {
  content: ""; position: absolute; inset: 0; background: #e6e6e4; filter: url(#torn);
}
.card-media .scrap.dark::before { background: #12141f; }
.card-media .scrap img { position: relative; max-height: 120px; max-width: 78%; object-fit: contain; }
.card-media .scrap.dark img { max-height: none; max-width: 100%; height: 100%; object-fit: cover; }
.card-media .clip { position: absolute; top: 18px; left: 50%; width: 18px; height: 46px; transform: translateX(-50%); z-index: 2; }
.card-body { padding: 26px 34px 32px; font-size: 14px; flex: 1; }
.card-body strong { color: var(--ink); }
.card-body .meta { display: block; margin-top: 14px; color: var(--muted); font-size: 13px; }
.card-body a { font-family: var(--type); text-decoration: none; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px; }
.stat {
  background: #fff; border: 1px solid var(--line); padding: 22px 22px 18px;
  background-image: linear-gradient(transparent 31px, rgba(47,79,168,.12) 32px);
  background-size: 100% 32px;
}
.stat:nth-child(odd) { transform: rotate(-.6deg); }
.stat:nth-child(even) { transform: rotate(.5deg); }
.stat b { display: block; font: 34px/1.2 var(--type); color: var(--ink); }
.stat span { font-size: 13px; }

/* ---------- articles ---------- */
.articles { display: grid; gap: 14px; }
.article {
  display: grid; grid-template-columns: 220px 1fr 100px; min-height: 82px;
  background: var(--card); border: 1px solid var(--line);
  text-decoration: none; color: var(--text); transition: background .2s;
}
.article > * { display: flex; align-items: center; padding: 14px 24px; }
.article .date { justify-content: center; border-right: 1px solid var(--line); }
.article .title { padding-left: clamp(24px, 6vw, 100px); }
.article .icon { justify-content: center; border-left: 1px solid var(--line); color: var(--ink); }
.article .icon svg { width: 40px; height: 22px; }
.article:hover { background: var(--ink-soft); }

/* ---------- marquee ---------- */
.marquee {
  margin-top: clamp(60px, 8vw, 100px); overflow: hidden;
  border-top: 1px solid #e3e3e3; border-bottom: 1px solid #e3e3e3;
  background: rgba(255,255,255,.75); padding: 24px 0;
}
.marquee-track { display: flex; gap: 70px; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 40px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: .3s; }
.marquee-track img:hover { filter: none; opacity: 1; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- tabs + handheld ---------- */
.tabs { display: flex; border-bottom: 2px solid var(--ink); margin-bottom: 50px; }
.tabs button {
  font: 15px var(--type); letter-spacing: .04em; color: var(--ink);
  background: var(--ink-soft); border: 2px solid var(--ink); border-bottom: 0;
  padding: 4px 12px; cursor: pointer; margin-right: -2px;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }

.tab-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 520px); gap: clamp(24px, 5vw, 90px); align-items: start; }
.tab-list {
  max-height: 560px; overflow-y: auto; padding: 4px 18px 4px 4px;
  display: grid; gap: 16px; align-content: start;
  border-right: 2px solid var(--ink);
}
.item {
  display: grid; grid-template-columns: 170px 1fr; min-height: 110px;
  background: var(--card); border: 1px solid var(--line); text-align: left;
  font: inherit; color: inherit; padding: 0; cursor: pointer;
}
.item.text-only { grid-template-columns: 1fr; }
.item .thumb { background: #fff; border-right: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.item .thumb.logo img { width: auto; height: auto; max-width: 70%; max-height: 64px; object-fit: contain; }
.item .info { padding: 14px 22px; font-size: 13.5px; text-transform: lowercase; }
.item .info b { display: block; margin-bottom: 6px; font-size: 14px; }
.item[aria-current="true"] { background: var(--ink-soft); outline: 3px solid var(--ink); outline-offset: -3px; }
.item:hover { background: var(--ink-soft); }

.handheld {
  position: sticky; top: 110px;
  background: linear-gradient(160deg, #ececec, #d9d9d9);
  border-radius: 14px 14px 64px 14px; padding: 18px 26px 30px;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.08), 0 18px 40px rgba(0,0,0,.18);
}
.hh-top { font: 11px var(--mono); letter-spacing: .3em; color: #9b9b9b; text-align: center; padding-bottom: 10px; }
.hh-screen {
  background: #fff; border-radius: 10px; aspect-ratio: 16 / 10; overflow: hidden;
  border: 14px solid #59595f; border-radius: 12px 12px 34px 12px;
  display: grid; place-items: center; text-align: center; position: relative;
}
.hh-screen img { width: 100%; height: 100%; object-fit: cover; }
.hh-screen img.logo { width: auto; height: auto; max-width: 60%; max-height: 60%; object-fit: contain; }
.hh-screen .screen-text { padding: 18px 22px; font-size: 13px; text-align: left; line-height: 1.6; }
.hh-screen .screen-text b { font-family: var(--type); color: var(--ink); font-size: 16px; display: block; margin-bottom: 6px; }
.hh-screen .screen-text ul { margin: 0; padding-left: 18px; }
.hh-screen a.open {
  position: absolute; right: 10px; bottom: 8px; font: 12px var(--type);
  background: var(--ink); color: #fff; padding: 2px 8px; text-decoration: none;
}
.hh-controls { display: flex; justify-content: space-between; align-items: center; padding: 28px 10px 10px; }
.dpad { position: relative; width: 84px; height: 84px; }
.dpad span { position: absolute; background: #1d1d1f; border-radius: 4px; }
.dpad span:first-child { left: 28px; top: 0; width: 28px; height: 84px; }
.dpad span:last-child { top: 28px; left: 0; width: 84px; height: 28px; }
.ab { display: flex; gap: 16px; transform: rotate(-20deg); }
.ab i { width: 44px; height: 44px; border-radius: 50%; background: #6b6b70; box-shadow: inset 0 -3px 0 rgba(0,0,0,.35); font: 10px var(--mono); color: transparent; }
.hh-pills { display: flex; gap: 20px; justify-content: center; padding-top: 6px; }
.hh-pills span { font: 10px var(--mono); color: #8a8a8a; text-transform: uppercase; padding-top: 18px; position: relative; }
.hh-pills span::before { content: ""; position: absolute; top: 0; left: 50%; width: 44px; height: 12px; margin-left: -22px; background: #8f8f95; border-radius: 8px; transform: rotate(-22deg); }
.hh-speaker { display: flex; gap: 9px; justify-content: flex-end; transform: rotate(-30deg); margin: -10px 4px 0 0; }
.hh-speaker b { width: 7px; height: 46px; border-radius: 4px; background: #b5b5b8; box-shadow: inset 0 2px 2px rgba(0,0,0,.25); }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(70px, 9vw, 120px); padding: 60px clamp(16px, 3vw, 40px) 30px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 1440px; margin: 0 auto; }
.footer-cols h3 { font: 700 17px var(--mono); text-transform: uppercase; margin: 0 0 16px; }
.footer-cols a, .footer-cols span { display: block; color: #555; text-decoration: none; text-transform: uppercase; font-size: 15px; line-height: 2.3; }
.footer-cols a:hover { color: var(--ink); }
.footer-cols .muted { text-transform: none; }
.sketch-name { display: block; width: 100%; max-width: 1440px; margin: 50px auto 0; overflow: visible; }
.sketch-name text {
  font: 400 220px "Helvetica Neue", Arial, sans-serif;
  fill: url(#hatch); stroke: #7a7a7a; stroke-width: 2.2; paint-order: stroke;
}
.doodle * { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.fine { text-align: center; color: #999; font-size: 12px; margin: 10px 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .tab-body { grid-template-columns: 1fr; }
  .handheld { position: relative; top: 0; order: -1; max-width: 460px; margin: 0 auto; width: 100%; }
  .tab-list { border-right: 0; max-height: none; padding-right: 4px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .brand { font-size: 16px; }
  .site-header nav a { font-size: 13px; }
  .hero-grid { grid-template-columns: 1fr; }
  .polaroid { max-width: 300px; margin: 0 auto; }
  .article { grid-template-columns: 1fr 64px; }
  .article .date { grid-column: 1 / -1; justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 18px; font-size: 13px; }
  .article .title { padding-left: 18px; }
  .item { grid-template-columns: 110px 1fr; }
}
@media (max-width: 480px) {
  .site-header { flex-direction: column; gap: 4px; }
  .footer-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .caret { animation: none; }
}

/* v1 polish */
.card-media .scrap img { mix-blend-mode: multiply; }
.card-media .scrap.dark img { mix-blend-mode: normal; }
.marquee-track { align-items: center; }
.marquee-track img.sq { height: 56px; }
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 14px; }
  .stat b { font-size: 26px; }
  .stat span { font-size: 12px; line-height: 1.5; display: block; }
}

/* ---------- thrift shift ---------- */
.thrift-intro { max-width: 760px; font-size: 16px; margin: 0 0 28px; }
.thrift-highlight { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-bottom: 48px; }
.thrift-highlight b { font: 34px/1.1 var(--type); color: var(--ink); display: block; }
.thrift-highlight span { font-size: 13px; color: var(--muted); }
.thrift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px) clamp(20px, 3vw, 44px); }
.snap { position: relative; margin: 0; padding: 14px 14px 46px; transition: transform .35s ease; }
.snap:nth-child(3n+1) { transform: rotate(-1.8deg); }
.snap:nth-child(3n+2) { transform: rotate(1.2deg); }
.snap:nth-child(3n) { transform: rotate(-.6deg); }
.snap:hover { transform: rotate(0) scale(1.03); z-index: 2; }
.snap-paper { position: absolute; inset: 0; background: #f1f0ec; box-shadow: 0 8px 22px rgba(0,0,0,.13); filter: url(#torn); }
.snap img { position: relative; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.snap figcaption { position: absolute; left: 10px; right: 10px; bottom: 12px; text-align: center; font: 13px var(--type); color: var(--ink); }
.thrift-more { display: inline-block; margin-top: 36px; }
.mq-item { display: inline-flex; align-items: center; gap: 10px; filter: grayscale(1); opacity: .6; transition: .3s; }
.mq-item:hover { filter: none; opacity: 1; }
.mq-item img { filter: none !important; opacity: 1 !important; }
.mq-item b { font: 600 30px "Helvetica Neue", Arial, sans-serif; color: #222; letter-spacing: -.02em; }
@media (max-width: 900px) { .thrift-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  .thrift-grid { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .thrift-highlight b { font-size: 26px; }
}
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; white-space: nowrap; }
.site-header nav a { white-space: nowrap; }
@media (max-width: 480px) {
  .site-header nav { flex-wrap: wrap; justify-content: center; gap: 2px 14px; }
}
