/* ═══════════════════════════════════════════════
   Startup Profile — Figma-faithful v2
   Matches wireframe 216-1766
   ═══════════════════════════════════════════════ */

:root {
  --sew-coral: var(--sew-primary-500);
  --sew-dark: var(--sew-dark-600);
  --sew-page-bg: #f8f7f4;
}

.sew-profile {
  background-color: var(--sew-page-bg);
}

/* ── 1. COVER + HEADER (Figma-exact) ── */
.sew-profile__cover {
  position: relative;
  background: var(--sew-dark);
  background-size: cover;
  background-position: center;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.sew-profile__cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,36,52,0.15) 0%, rgba(10,36,52,0.55) 100%);
  pointer-events: none;
}
/* Views + Social: top-right floating on same line */
.sew-profile__cover-actions {
  position: absolute;
  top: 1.25rem;
  right: 2rem;
  z-index: 3;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}
.sew-profile__cover-actions .sew-profile__views {
  margin-right: 0.5rem;
}
.sew-profile__cover-actions .sew-profile__social {
  flex-direction: row;
}
.sew-profile__views {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}
.sew-profile__social {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.sew-profile__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  transition: background 0.2s;
}
.sew-profile__social-icon:hover {
  background: rgba(255,255,255,0.35);
}
/* Hero bar: logo + name overlapping cover bottom */
.sew-profile__hero-bar {
  position: relative;
  z-index: 4;
  margin-top: auto;
  transform: translateY(45%);
}
.sew-profile__hero-bar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.sew-profile__logo-card {
  width: 170px;
  height: 180px;
  background: #fff;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sew-profile__logo {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  border: none;
  background: #fff;
}
.sew-profile__logo--placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--sew-dark);
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  border-radius: 10px;
}
.sew-profile__header-info {
  padding-top: 2rem; /* Align name near upper-middle of logo card */
}
.sew-profile__name {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.35rem;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.sew-profile__badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.sew-profile__badge {
  background: var(--sew-coral);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

/* ── 2. STATS BAR ── */
.sew-profile__stats-bar {
  background: var(--sew-coral);
  padding: 0.75rem 0;
  padding-top: calc(81px + 0.75rem); /* 45% of 180px logo + normal padding */
}
.sew-profile__stats-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 0.5rem;
  flex-wrap: nowrap !important;
}
.sew-profile__stat {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.6rem;
  color: #fff;
  flex: 0 0 auto;
}
.sew-profile__stat-icon {
  width: 44px;
  height: 44px;
  background: rgba(180,55,55,0.5);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sew-profile__stat-icon svg {
  stroke: #fff;
  width: 22px;
  height: 22px;
}
.sew-profile__stat-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
  font-weight: 600;
}
.sew-profile__stat-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
a.sew-profile__stat-value:hover {
  text-decoration: underline;
}

/* ── 3. TABS ── */
.sew-profile__tabs {
  background: #fff;
  border-bottom: 1px solid #e8eaed;
  position: sticky;
  top: 0;
  z-index: 50;
}
.sew-profile__tabs-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
}
.sew-profile__tab {
  background: none;
  border: none;
  padding: 1rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #666;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.sew-profile__tab:hover { color: var(--sew-coral); }
.sew-profile__tab--active {
  color: var(--sew-coral);
  border-bottom-color: var(--sew-coral);
}

/* ── 4. PANELS ── */
.sew-profile__panel { display: none; }
.sew-profile__panel--active { display: block; }
.sew-profile__panel--always { display: block; }
.sew-profile__content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}
/* Tighten spacing between adjacent sections */
.sew-profile__content > .sew-profile__panel > *:last-child {
  margin-bottom: 0;
}

/* ── CARD (white containers) ── */
.sew-profile__card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1rem;
  border: 1px solid #eee;
}

.sew-profile__section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--sew-coral);
  margin: 0 0 1.25rem;
}

/* ── SUMMARY SPLIT ── */
.sew-profile__summary-split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
  align-items: start;
}
.sew-profile__summary-photo {
  border-radius: 8px;
  overflow: hidden;
}
.sew-profile__summary-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.sew-profile__summary-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.sew-profile__summary-right h2 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--sew-coral);
  margin: 0 0 1rem;
}
.sew-profile__description {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #555;
}
.sew-profile__description p { margin: 0 0 0.75rem; }

/* Gallery grid (2×3) */
.sew-profile__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 1.25rem;
}
.sew-profile__gallery-thumb {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 3/2;
}
.sew-profile__gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.sew-profile__gallery-thumb:hover img {
  transform: scale(1.05);
}

/* ── VALUES BANNER ── */
.sew-profile__values {
  background: var(--sew-coral);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  background-size: 600px 400px;
  background-repeat: repeat;
}
.sew-profile__values-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.sew-profile__values-pills {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.sew-profile__values-pill {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 400;
  color: #fff;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 50px;
  padding: 0.6rem 2.5rem;
  line-height: 1.3;
  white-space: nowrap;
}

/* ── INSIDER VIEW ── */
.sew-profile__insider-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 0.5rem;
}
.sew-profile__insider-left {
  padding-right: 2rem;
}
.sew-profile__insider-icon {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--sew-coral);
  line-height: 1;
  margin-bottom: 1rem;
}
.sew-profile__insider-question {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--sew-dark);
  line-height: 1.5;
  margin: 0 0 1.5rem;
}
.sew-profile__insider-avatars {
  display: flex;
  gap: 0.5rem;
}
.sew-profile__avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sew-coral);
}
.sew-profile__insider-right {
  background: var(--sew-coral);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.sew-profile__insider-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}
.sew-profile__insider-quote {
  margin: 0;
  padding: 0;
  border: none;
}
.sew-profile__insider-quote p {
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(255,255,255,0.95);
  line-height: 1.6;
  margin: 0 0 1rem;
}
.sew-profile__insider-quote footer {
  margin-top: auto;
}
.sew-profile__insider-quote strong {
  display: block;
  color: #fff;
  font-size: 0.9rem;
}
.sew-profile__insider-quote footer span {
  display: block;
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
}

/* ── STARTUP STATS + MAP (side-by-side) ── */
.sew-profile__stats-map-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  margin-top: 0;
}
@media (min-width: 769px) {
  .sew-profile__stats-map-row { grid-template-columns: 3fr 2fr; }
}
.sew-profile__stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.sew-profile__buyable-badge {
  background: var(--sew-coral);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.4rem 1rem;
  border-radius: 4px;
}
.sew-profile__stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}
@media (min-width: 769px) {
  .sew-profile__stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.sew-profile__stat-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0.75rem;
  border: 1px solid #f0f0f0;
  background: #fff;
}
.sew-profile__stat-cell-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(240,107,107,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sew-profile__stat-cell-label {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sew-coral);
  font-weight: 600;
}
.sew-profile__stat-cell-value {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sew-dark);
  word-break: break-word;
}

/* Map panel (right side) */
.sew-profile__map-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sew-profile__map-box {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
}
.sew-profile__location-photo {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  flex: 1;
}
.sew-profile__location-photo img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
}
.sew-profile__location-label {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 0.35rem 1.25rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--sew-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ── JOBS ── */
.sew-profile__jobs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.sew-profile__jobs-filters {
  display: flex;
  gap: 1rem;
}
.sew-profile__filter {
  border: 1px solid #e0e0e0;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #555;
  background: #fff;
  cursor: pointer;
}
.sew-profile__jobs-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #999;
}
.sew-profile__jobs-empty p { margin: 0.5rem 0; }
.sew-profile__jobs-hint a { color: var(--sew-coral); }

/* ── JOB CARDS (horizontal scroll) ── */
.sew-profile__jobs-scroll {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0 1rem;
  scroll-snap-type: x mandatory;
}
.sew-profile__jobs-scroll::-webkit-scrollbar { height: 4px; }
.sew-profile__jobs-scroll::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }
.sew-profile__job-card {
  flex: 0 0 240px !important;
  min-width: 240px;
  max-width: 240px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.25rem;
  scroll-snap-align: start;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.sew-profile__job-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.sew-profile__job-card[data-hidden="true"] { display: none; }
.sew-profile__job-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.sew-profile__job-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}
.sew-profile__job-logo--initials {
  background: var(--sew-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
}
.sew-profile__job-fav {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.sew-profile__job-fav:hover { color: var(--sew-coral); }
.sew-profile__job-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sew-dark);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}
.sew-profile__job-location {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 0.5rem;
}
.sew-profile__job-location svg { color: var(--sew-coral); flex-shrink: 0; }
.sew-profile__job-excerpt {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin: 0;
}
.sew-profile__job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f0f0f0;
}
.sew-profile__job-time {
  font-size: 0.7rem;
  color: #aaa;
}
.sew-profile__job-salary {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--sew-coral);
  background: rgba(240,107,107,0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ── PERKS (6-col grid, square icons) ── */
.sew-profile__perks-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1rem;
}
.sew-profile__perk-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 0.75rem;
  border: 1px solid #f0f0f0;
  background: #fff;
}
.sew-profile__perk-sq {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sew-profile__perk-cat {
  display: block;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sew-coral);
  font-weight: 600;
}
.sew-profile__perk-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sew-dark);
}

/* ── TECH WE USE ── */
.sew-profile__tech-subtabs {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  border-bottom: 1px solid #eee;
  margin-bottom: 1.25rem;
  flex-wrap: nowrap;
}
.sew-profile__tech-subtab {
  background: none;
  border: none;
  padding: 0.6rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.sew-profile__tech-subtab:hover { color: var(--sew-coral); }
.sew-profile__tech-subtab--active {
  color: var(--sew-coral);
  border-bottom-color: var(--sew-coral);
}
.sew-profile__tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}
.sew-profile__tech-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 0.75rem;
  border: 1px solid #f0f0f0;
  background: #fff;
}
.sew-profile__tech-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sew-profile__tech-cat {
  display: block;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sew-coral);
  font-weight: 600;
}
.sew-profile__tech-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sew-dark);
}

/* ── CULTURE VALUES ── */
.sew-profile__culture-pills {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.sew-profile__culture-pill {
  background: var(--sew-coral);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 24px;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-style: italic;
  font-weight: 500;
}

/* ── ARTICLES GRID ── */
.sew-profile__articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.sew-profile__article-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}
.sew-profile__article-card:hover { transform: translateY(-2px); }
.sew-profile__article-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}
.sew-profile__article-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--sew-dark);
  line-height: 1.3;
}
.sew-profile__article-card p {
  font-size: 0.8rem;
  color: #777;
  line-height: 1.5;
  margin: 0 0 0.75rem;
}
.sew-profile__article-btn {
  display: inline-block;
  background: var(--sew-coral);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
}

/* ── CLAIM CTA ── */
.sew-profile__claim {
  background: var(--sew-coral);
  padding: 1.5rem 0;
  margin-top: 1rem;
}
.sew-profile__claim-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 2rem;
}
.sew-profile__claim-left {
  flex-shrink: 0;
}
.sew-profile__claim-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.sew-profile__claim-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  display: block;
}
.sew-profile__claim-right {
  flex: 1;
  max-width: 480px;
}
.sew-profile__claim-field-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.sew-profile__claim-row {
  display: flex;
  gap: 0.5rem;
}
.sew-profile__claim-input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  background: #fff;
}
.sew-profile__claim-btn {
  background: var(--sew-dark);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s;
}
.sew-profile__claim-btn:hover { opacity: 0.9; color: #fff; }
.sew-profile__claim-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.sew-profile__claim--success {
  background: #27ae60 !important;
  text-align: center;
}
.sew-profile__claim--owner {
  background: var(--sew-primary) !important;
}
.sew-profile__claim--owner .sew-profile__claim-inner {
  justify-content: center;
  gap: 1.5rem;
}

/* ── Edit Profile Button (owner only) ── */
.sew-profile__edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  margin-left: 0.5rem;
}
.sew-profile__edit-btn:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.sew-profile__edit-btn svg {
  flex-shrink: 0;
}

/* ── EMPTY STATE ── */
.sew-profile__empty {
  text-align: center;
  color: #999;
  padding: 2rem;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Mobile-first, gracefully degrading
   ═══════════════════════════════════════════════ */

/* Hide scrollbars on horizontal-scroll areas but keep functionality */
.sew-profile__stats-bar,
.sew-profile__tabs-inner,
.sew-profile__jobs-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sew-profile__stats-bar::-webkit-scrollbar,
.sew-profile__tabs-inner::-webkit-scrollbar {
  display: none;
}

/* Tablet (769–992px) */
@media (max-width: 992px) {
  .sew-profile__summary-split {
    grid-template-columns: 1fr;
  }
  .sew-profile__summary-photo {
    max-height: 280px;
    overflow: hidden;
  }
  .sew-profile__stats-map-row {
    grid-template-columns: 1fr;
  }
  .sew-profile__stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .sew-profile__perks-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .sew-profile__tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .sew-profile__articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sew-profile__insider-split {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .sew-profile__insider-left {
    padding-right: 0;
  }
  /* Map panel: side-by-side map + location photo */
  .sew-profile__map-panel {
    flex-direction: row;
  }
  .sew-profile__map-box {
    flex: 1;
  }
  .sew-profile__location-photo {
    flex: 0 0 180px;
    max-height: 200px;
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  /* Cover: shorter, more compact */
  .sew-profile__cover {
    min-height: 160px;
  }
  .sew-profile__cover-actions {
    top: 0.6rem;
    right: 0.75rem;
    gap: 0.4rem;
  }
  .sew-profile__views {
    font-size: 0.85rem;
  }
  .sew-profile__social-icon {
    width: 26px;
    height: 26px;
  }
  .sew-profile__social-icon svg {
    width: 13px;
    height: 13px;
  }

  /* Hero: smaller logo, name closer */
  .sew-profile__hero-bar {
    transform: translateY(35%);
  }
  .sew-profile__hero-bar-inner {
    gap: 0.75rem;
    padding: 0 1rem;
  }
  .sew-profile__logo-card {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  }
  .sew-profile__header-info {
    padding-top: 0.5rem;
  }
  .sew-profile__name {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
  }
  .sew-profile__badge {
    font-size: 0.5rem;
    padding: 0.2rem 0.5rem;
  }

  /* Stats bar: horizontal scroll, compact items */
  .sew-profile__stats-bar {
    padding-top: calc(28px + 0.5rem); /* 35% of 80px logo */
    padding-bottom: 0.5rem;
    overflow: hidden !important;
  }
  .sew-profile__stats-inner {
    gap: 0.4rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    padding: 0 0.5rem;
  }
  .sew-profile__stat {
    flex: 0 0 auto;
    gap: 0.3rem;
  }
  .sew-profile__stat-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
  }
  .sew-profile__stat-icon svg {
    width: 14px;
    height: 14px;
  }
  .sew-profile__stat-label { font-size: 0.48rem; letter-spacing: 0.2px; }
  .sew-profile__stat-value { font-size: 0.65rem; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Tabs: smooth horizontal scroll */
  .sew-profile__tabs {
    overflow: hidden !important;
  }
  .sew-profile__tabs-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    gap: 0;
    scrollbar-width: none;
  }
  .sew-profile__tabs-inner::-webkit-scrollbar { display: none; }
  .sew-profile__tab {
    white-space: nowrap;
    padding: 0.7rem 0.65rem;
    font-size: 0.65rem;
    flex: 0 0 auto;
  }

  /* Claim section: stack on mobile */
  .sew-profile__claim-inner {
    flex-direction: column !important;
    text-align: center !important;
    gap: 0.75rem !important;
    padding: 0 1rem !important;
  }
  .sew-profile__claim-title {
    font-size: 1.2rem !important;
  }
  .sew-profile__claim--owner .sew-profile__claim-inner {
    gap: 0.5rem !important;
  }

  /* Content area */
  .sew-profile__content {
    padding: 0.75rem;
  }
  .sew-profile__card {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
  }
  .sew-profile__section-title {
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
  }

  /* Summary: stack photo above text */
  .sew-profile__summary-split {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .sew-profile__summary-photo {
    max-height: 200px;
    border-radius: 8px;
    overflow: hidden;
  }
  .sew-profile__summary-photo img {
    height: 200px;
    object-fit: cover;
  }
  .sew-profile__description {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  /* Gallery: 3 columns, tight */
  .sew-profile__gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
  }

  /* Values banner: smaller pills */
  .sew-profile__values {
    padding: 1.25rem 0.75rem;
    border-radius: 10px;
  }
  .sew-profile__values-pill {
    font-size: 0.85rem;
    padding: 0.35rem 1.25rem;
    border-width: 1.5px;
  }

  /* Insider view: stack vertical */
  .sew-profile__insider-split {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .sew-profile__insider-left {
    padding-right: 0;
  }
  .sew-profile__insider-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  .sew-profile__insider-question {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  .sew-profile__insider-right {
    border-radius: 10px;
    padding: 1.25rem;
  }
  .sew-profile__insider-photo {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
  }
  .sew-profile__insider-quote p {
    font-size: 0.85rem;
  }

  /* Stats grid + Map: stack */
  .sew-profile__stats-map-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .sew-profile__stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sew-profile__stats-panel {
    margin-bottom: 0;
  }
  .sew-profile__map-panel {
    flex-direction: column;
    gap: 0.75rem;
  }
  .sew-profile__map-box {
    border-radius: 10px;
    min-height: 180px;
  }
  .sew-profile__location-photo {
    border-radius: 10px;
    max-height: 140px;
  }
  .sew-profile__location-photo img {
    min-height: 140px;
    max-height: 140px;
  }
  .sew-profile__location-label {
    font-size: 0.75rem;
    padding: 0.25rem 1rem;
  }

  /* Jobs */
  .sew-profile__jobs-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .sew-profile__jobs-filters {
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
  }
  .sew-profile__filter {
    flex: 1;
    min-width: 0;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }
  .sew-profile__job-card {
    flex: 0 0 200px !important;
    min-width: 200px;
    max-width: 200px;
    padding: 1rem;
  }
  .sew-profile__job-title {
    font-size: 0.85rem;
  }

  /* Perks: 2 columns */
  .sew-profile__perks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sew-profile__perk-item {
    padding: 0.65rem 0.5rem;
    gap: 0.4rem;
  }
  .sew-profile__perk-sq {
    width: 30px;
    height: 30px;
  }
  .sew-profile__perk-cat {
    font-size: 0.5rem;
  }
  .sew-profile__perk-name {
    font-size: 0.7rem;
  }

  /* Tech: 2 columns */
  .sew-profile__tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sew-profile__tech-subtabs {
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sew-profile__tech-subtab {
    flex: 0 0 auto;
    padding: 0.5rem 0.75rem;
    font-size: 0.65rem;
  }

  /* Culture */
  .sew-profile__culture-pills {
    gap: 0.5rem;
  }
  .sew-profile__culture-pill {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
  }

  /* Articles: single column */
  .sew-profile__articles-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .sew-profile__article-card img {
    aspect-ratio: 2/1;
  }

  /* Claim: stack vertically */
  .sew-profile__claim {
    margin-top: 0.5rem;
    padding: 1.25rem 0;
  }
  .sew-profile__claim-inner {
    flex-direction: column !important;
    text-align: center;
    gap: 0.75rem;
  }
  .sew-profile__claim-right {
    max-width: 100%;
    width: 100%;
  }
  .sew-profile__claim-title {
    font-size: 1.3rem;
  }
  .sew-profile__claim-row {
    flex-direction: column;
    gap: 0.4rem;
  }
  .sew-profile__claim-btn {
    width: 100%;
    text-align: center;
    padding: 0.65rem;
  }
}

/* Small mobile (≤400px) */
@media (max-width: 400px) {
  .sew-profile__hero-bar-inner {
    padding: 0 0.75rem;
  }
  .sew-profile__logo-card {
    width: 68px;
    height: 68px;
  }
  .sew-profile__name {
    font-size: 1.15rem;
  }
  .sew-profile__stats-bar {
    padding-top: calc(24px + 0.4rem);
  }
  .sew-profile__content {
    padding: 0.5rem;
  }
  .sew-profile__card {
    padding: 0.85rem;
  }
  .sew-profile__stat-cell {
    padding: 0.5rem 0.4rem;
    gap: 0.3rem;
  }
  .sew-profile__stat-cell-icon {
    width: 24px;
    height: 24px;
  }
  .sew-profile__stat-cell-icon svg {
    width: 12px;
    height: 12px;
  }
  .sew-profile__stat-cell-label {
    font-size: 0.45rem;
  }
  .sew-profile__stat-cell-value {
    font-size: 0.65rem;
    max-width: none;
    white-space: normal;
    word-break: break-word;
  }
  .sew-profile__values-pill {
    font-size: 0.75rem;
    padding: 0.3rem 1rem;
  }
  .sew-profile__gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
