:root{
  --white: #FFFFFF;
  --swatch: #F4F4F4;
  --ink: #1A1A1A;
  --grey: #8C8C8C;
  --grey-mid: #6E6E6E;
  --line: #E7E7E7;
  --line-strong: #D8D8D8;
  --brand-blue: #0587C5;
  --radius: 2px;
}

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

body{
  margin:0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- header ---------- */
.site-header{
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px;
}
.logo-img{
  height: 30px;
  width: auto;
  display: block;
}
.header-meta{
  font-size: 12px;
  color: var(--grey);
  font-weight: 400;
}

/* ---------- intro ---------- */
.intro{
  padding: 44px 0 20px;
}
.intro h1{
  font-size: 27px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.intro p{
  margin:0;
  color: var(--grey);
  font-size: 14px;
  font-weight: 300;
  max-width: 50ch;
}

/* ---------- filter bar (type tabs) ---------- */
.tab-rack{
  display:flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
  font-size: 13px;
}
.tab-btn{
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  color: var(--grey-mid);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab-btn .tab-count{
  font-size: 10px;
  vertical-align: super;
  color: var(--grey);
  margin-left: 1px;
}
.tab-btn:hover{ color: var(--ink); }
.tab-btn.active{
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
  font-weight: 700;
}

/* ---------- profile panel ---------- */
.profile-panel{
  margin: 0 0 60px;
}
.panel-head{
  display:flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 26px;
  gap: 20px;
  flex-wrap: wrap;
}
.panel-head h2{
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink);
}
.panel-head p{
  color: var(--grey);
  font-size: 13px;
  font-weight: 300;
  margin:0;
  max-width: 55ch;
}
.panel-count{
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-transform: uppercase;
}

.profile-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 32px 24px;
}
.profile-card{
  display:flex;
  flex-direction: column;
}
.profile-swatch{
  background: var(--swatch);
  aspect-ratio: 1 / 1;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom: 14px;
  border-radius: var(--radius);
  overflow: hidden;
}
.profile-swatch img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-swatch span.swatch-fallback{
  font-size: 14px;
  font-weight: 700;
  color: var(--line-strong);
  letter-spacing: 0.02em;
}
.profile-code{
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
.profile-meta{
  font-size: 12.5px;
  color: var(--grey);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 12px;
}
.pdf-link{
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--brand-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  width: fit-content;
  transition: border-color 0.15s ease;
}
.pdf-link:hover{
  border-color: var(--brand-blue);
}

/* ---------- footer ---------- */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 20px 0 40px;
}
.site-footer .wrap{
  font-size: 12px;
  color: var(--grey);
  font-weight: 300;
}

/* ---------- responsive ---------- */
@media (max-width: 640px){
  .header-inner{ padding: 18px 20px; }
  .logo-img{ height: 24px; }
  .wrap{ padding: 0 20px; }
  .intro h1{ font-size: 22px; }
  .tab-rack{ gap: 18px; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; scroll-behavior: auto !important; }
}

a:focus-visible, button:focus-visible{
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}
