/* EOCHE portfolio page - scoped styles only */
.portfolio-page {
  margin: 0;
  min-height: 100vh;
  color: #f4f4f5;
  background:
    linear-gradient(180deg, rgba(253, 58, 37, 0.10) 0%, rgba(9, 9, 11, 0) 28%),
    linear-gradient(135deg, #09090b 0%, #18181b 44%, #0b0b0d 100%);
  font-family: "Urbanist", "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.portfolio-page *,
.portfolio-page *::before,
.portfolio-page *::after {
  box-sizing: border-box;
}

.portfolio-page a {
  color: inherit;
}

.portfolio-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.portfolio-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(9, 9, 11, 0.92) 0%, rgba(9, 9, 11, 0.78) 100%);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.55);
}

.portfolio-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}

.portfolio-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.portfolio-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.portfolio-logo span {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.portfolio-logo strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.portfolio-logo small {
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 700;
}

.portfolio-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.portfolio-nav a,
.portfolio-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 16px;
  border-radius: 99px;
  color: #e4e4e7;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
}

.portfolio-nav a {
  border: 1px solid transparent;
}

.portfolio-nav a:hover,
.portfolio-nav a:focus-visible {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.portfolio-button {
  border: 1px solid rgba(253, 58, 37, 0.45);
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.20), transparent 32%),
    linear-gradient(135deg, #fd3a25 0%, #b91c1c 100%);
  box-shadow:
    0 14px 30px rgba(253, 58, 37, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.portfolio-button:hover,
.portfolio-button:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 18px 36px rgba(253, 58, 37, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  filter: brightness(1.04);
}

/* Outline variant for light backgrounds (portfolio-closing) */
.portfolio-button--outline {
  border: 1px solid rgba(9, 9, 11, 0.18);
  color: #09090b;
  background: rgba(9, 9, 11, 0.04);
  box-shadow: 0 6px 18px rgba(9, 9, 11, 0.06);
}

.portfolio-button--outline:hover,
.portfolio-button--outline:focus-visible {
  border-color: rgba(9, 9, 11, 0.32);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(9, 9, 11, 0.12);
  filter: none;
}

.portfolio-hero {
  padding: clamp(80px, 11vw, 148px) 0 clamp(56px, 8vw, 100px);
  position: relative;
}

.portfolio-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(960px, 90vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(253, 58, 37, 0.32), transparent);
  pointer-events: none;
}

.portfolio-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: end;
}

.portfolio-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #fd3a25;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: currentColor;
}

.portfolio-hero h1 {
  max-width: 880px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
}

.portfolio-hero__lead {
  margin: 24px 0 0;
  max-width: 720px;
  color: #d4d4d8;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.7;
}

.portfolio-note {
  padding: clamp(24px, 3.2vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 28px;
  color: #e4e4e7;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.portfolio-note strong {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 18px;
}

.portfolio-note p {
  margin: 0;
  color: #c7c7ce;
  font-size: 15px;
  line-height: 1.65;
}

.portfolio-taxonomy {
  padding: clamp(52px, 7vw, 96px) 0;
  background:
    radial-gradient(circle at 8% 10%, rgba(253, 58, 37, 0.05), transparent 35%),
    #edeeec;
  color: #09090b;
  border-top: 1px solid rgba(9, 9, 11, 0.05);
}

.portfolio-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.85fr);
  gap: clamp(22px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.portfolio-section-head h2 {
  margin: 0;
  color: #18181b;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.portfolio-section-head p {
  margin: 0;
  color: #52525b;
  font-size: 17px;
  line-height: 1.7;
}

.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.taxonomy-item {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(9, 9, 11, 0.10);
  border-radius: 22px;
  background: #fafafa;
  box-shadow: 0 18px 45px rgba(9, 9, 11, 0.06);
}

.taxonomy-item span {
  display: inline-flex;
  margin-bottom: 14px;
  color: #fd3a25;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.taxonomy-item h3 {
  margin: 0 0 10px;
  color: #09090b;
  font-size: 20px;
  line-height: 1.15;
}

.taxonomy-item p {
  margin: 0;
  color: #52525b;
  font-size: 15px;
  line-height: 1.6;
}

.portfolio-work {
  padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 10vw, 140px);
  background:
    radial-gradient(circle at 92% 4%, rgba(253, 58, 37, 0.08), transparent 36%),
    transparent;
}

.portfolio-work .portfolio-section-head h2 {
  color: #ffffff;
}

.portfolio-work .portfolio-section-head p {
  color: #c7c7ce;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.8vw, 30px);
}

.work-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 30px;
  color: #f4f4f5;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, #18181b 0%, #09090b 100%);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.work-card--soon {
  background:
    linear-gradient(135deg, rgba(253, 58, 37, 0.10), rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, #141417 0%, #09090b 100%);
}

.work-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #050505;
  text-decoration: none;
}

.work-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

a.work-card__media:hover img,
a.work-card__media:focus-visible img {
  transform: scale(1.035);
}

a.work-card__media:hover .work-card__placeholder span,
a.work-card__media:focus-visible .work-card__placeholder span {
  border-color: rgba(253, 58, 37, 0.45);
  color: #ffffff;
  transform: translateY(-2px);
}

.work-card__placeholder {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(253, 58, 37, 0.14), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px);
}

.work-card__placeholder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(180px, 70%);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(9, 9, 11, 0.42);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: 0.04em;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.work-card__badge {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  display: inline-flex;
  max-width: calc(100% - 32px);
  min-height: 32px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  color: #f5f5f5;
  background: rgba(9, 9, 11, 0.72);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.work-card__badge--concept,
.work-card__badge--lab {
  color: #09090b;
  background: #f5f5f5;
}

.work-card__badge--real {
  background: rgba(253, 58, 37, 0.92);
}

.work-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3vw, 34px);
}

.work-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #a1a1aa;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.work-card__meta::after {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(253, 58, 37, 0.68);
}

.work-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.06;
}

.work-card p {
  margin: 0;
  color: #d4d4d8;
  font-size: 16px;
  line-height: 1.65;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 2px 0 0;
  list-style: none;
}

.work-tags li {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 99px;
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.work-card__action {
  margin-top: auto;
  padding-top: 10px;
}

.work-card__action a,
.work-card__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.work-card__action a span {
  color: #fd3a25;
}

.work-card__status {
  color: #a1a1aa;
}

.portfolio-closing {
  padding: clamp(56px, 7vw, 96px) 0;
  background:
    radial-gradient(circle at 92% 6%, rgba(253, 58, 37, 0.07), transparent 38%),
    #edeeec;
  color: #09090b;
  border-top: 1px solid rgba(9, 9, 11, 0.06);
}

.portfolio-closing__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
}

.portfolio-closing h2 {
  max-width: 680px;
  margin: 0;
  color: #18181b;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.portfolio-closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.portfolio-button--dark {
  border-color: rgba(9, 9, 11, 0.12);
  background: #09090b;
}

.portfolio-button--light {
  border: 1px solid rgba(9, 9, 11, 0.12);
  color: #09090b;
  background: #ffffff;
  box-shadow: none;
}

.portfolio-button--ghost {
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.prototype-page .portfolio-header {
  position: sticky;
}

.prototype-hero {
  padding: clamp(58px, 9vw, 112px) 0 clamp(44px, 7vw, 82px);
}

.prototype-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: clamp(30px, 5vw, 74px);
  align-items: end;
}

.prototype-back {
  display: inline-flex;
  margin-bottom: 28px;
  color: #a1a1aa;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.prototype-back:hover,
.prototype-back:focus-visible {
  color: #ffffff;
}

.prototype-hero h1 {
  max-width: 860px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(50px, 8vw, 96px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: 0;
}

.prototype-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.prototype-interface {
  padding: clamp(50px, 8vw, 96px) 0;
  background: #edeeec;
  color: #09090b;
}

.prototype-interface .portfolio-section-head h2,
.prototype-modules .portfolio-section-head h2 {
  color: #18181b;
}

.prototype-interface .portfolio-section-head p,
.prototype-modules .portfolio-section-head p {
  color: #52525b;
}

.prototype-dashboard {
  overflow: hidden;
  border: 1px solid rgba(9, 9, 11, 0.10);
  border-radius: 30px;
  color: #f4f4f5;
  background:
    radial-gradient(circle at 12% 4%, rgba(253, 58, 37, 0.20), transparent 32%),
    linear-gradient(135deg, #151518 0%, #09090b 58%, #111113 100%);
  box-shadow: 0 28px 80px rgba(9, 9, 11, 0.22);
}

.prototype-dashboard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.prototype-dashboard__top span {
  display: block;
  margin-bottom: 6px;
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.prototype-dashboard__top strong {
  color: #ffffff;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}

.prototype-dashboard__badges {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.prototype-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(253, 58, 37, 0.34);
  border-radius: 99px;
  color: #ffffff;
  background: rgba(253, 58, 37, 0.12);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.prototype-data-label {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  color: #f4f4f5;
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.prototype-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.prototype-metrics article {
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
  background: rgba(9, 9, 11, 0.74);
}

.prototype-metrics span,
.prototype-metrics em {
  display: block;
  color: #a1a1aa;
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.prototype-metrics strong {
  display: block;
  margin: 8px 0;
  color: #ffffff;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
}

.prototype-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.prototype-panel {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  background: rgba(9, 9, 11, 0.74);
}

.prototype-panel--wide {
  grid-column: 1 / -1;
}

.prototype-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.prototype-panel__head h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.05;
}

.prototype-panel__head span {
  flex: 0 0 auto;
  color: #fd3a25;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.commerce-flow {
  display: grid;
  min-height: 250px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 18px);
  align-items: end;
}

.commerce-flow span {
  display: flex;
  min-height: var(--h);
  align-items: flex-end;
  justify-content: center;
  padding: 14px 8px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px 18px 10px 10px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(253, 58, 37, 0.58), rgba(253, 58, 37, 0.08)),
    rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 900;
}

.prototype-checklist,
.prototype-proof__content ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.prototype-checklist li,
.prototype-proof__content li {
  display: flex;
  gap: 10px;
  color: #d4d4d8;
  font-size: 15px;
  line-height: 1.55;
}

.prototype-checklist li span,
.prototype-proof__content li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 99px;
  background: #fd3a25;
}

.prototype-alerts,
.prototype-actions-list,
.leadops-timeline {
  display: grid;
  gap: 12px;
}

.prototype-alerts p,
.prototype-actions-list p,
.leadops-timeline p {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.prototype-alerts strong,
.prototype-alerts span,
.leadops-timeline b,
.leadops-timeline span {
  display: block;
}

.prototype-alerts strong,
.leadops-timeline b {
  color: #ffffff;
  font-size: 14px;
}

.prototype-alerts span,
.leadops-timeline span {
  margin-top: 4px;
  color: #a1a1aa;
  font-size: 13px;
}

.prototype-actions-list b {
  color: #fd3a25;
}

.leadops-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.leadops-column {
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
  background: rgba(9, 9, 11, 0.74);
}

.leadops-column h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.leadops-column article {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.leadops-column article + article {
  margin-top: 10px;
}

.leadops-column strong,
.leadops-column span {
  display: block;
}

.leadops-column strong {
  color: #ffffff;
  font-size: 14px;
}

.leadops-column span {
  margin-top: 5px;
  color: #a1a1aa;
  font-size: 13px;
  line-height: 1.45;
}

.leadops-status-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.leadops-status-row span {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid rgba(253, 58, 37, 0.24);
  border-radius: 18px;
  color: #ffffff;
  background: rgba(253, 58, 37, 0.09);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.local-seo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.76fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.local-seo-panel {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  background: rgba(9, 9, 11, 0.74);
}

.local-seo-panel--wide {
  grid-column: 1 / -1;
}

.local-seo-fields,
.local-page-signals {
  display: grid;
  gap: 10px;
}

.local-seo-fields p,
.local-page-signals li {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.local-page-signals {
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.local-seo-fields b,
.local-page-signals b {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.25;
}

.local-seo-fields span,
.local-page-signals span {
  color: #a1a1aa;
  font-size: 14px;
  line-height: 1.45;
}

.local-serp-preview {
  padding: 18px;
  border: 1px solid rgba(253, 58, 37, 0.20);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(253, 58, 37, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.035);
}

.local-serp-preview span {
  display: block;
  margin: 0 0 6px;
  color: #fd3a25;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.local-serp-preview strong {
  display: block;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.15;
}

.local-serp-preview p {
  margin: 0;
  color: #d4d4d8;
  font-size: 14px;
  line-height: 1.6;
}

.local-schema-code {
  overflow-x: auto;
  margin: 0;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: #e4e4e7;
  background: rgba(0, 0, 0, 0.34);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre;
}

.local-quality-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.local-quality-grid span {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid rgba(253, 58, 37, 0.22);
  border-radius: 18px;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 0%, rgba(253, 58, 37, 0.20), transparent 42%),
    rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.portal-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.portal-overview article {
  min-width: 0;
  padding: clamp(18px, 2.4vw, 26px);
  background: rgba(9, 9, 11, 0.74);
}

.portal-overview span,
.portal-overview em {
  display: block;
  color: #a1a1aa;
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.portal-overview strong {
  display: block;
  margin: 8px 0;
  color: #ffffff;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}

.portal-workflow {
  padding: clamp(20px, 3vw, 30px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 9, 11, 0.74);
}

.portal-flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.portal-flow-steps span {
  position: relative;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid rgba(253, 58, 37, 0.24);
  border-radius: 18px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(253, 58, 37, 0.15), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.portal-workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.portal-workflow-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.portal-workflow-card--active {
  border-color: rgba(253, 58, 37, 0.34);
  background:
    radial-gradient(circle at 20% 0%, rgba(253, 58, 37, 0.16), transparent 44%),
    rgba(255, 255, 255, 0.045);
}

.portal-workflow-card b,
.portal-workflow-card strong,
.portal-workflow-card span {
  display: block;
}

.portal-workflow-card b {
  color: #fd3a25;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.portal-workflow-card strong {
  margin-top: 7px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.25;
}

.portal-workflow-card span {
  margin-top: 5px;
  color: #a1a1aa;
  font-size: 13px;
  line-height: 1.45;
}

.portal-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.78fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.portal-panel {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  background: rgba(9, 9, 11, 0.74);
}

.portal-panel--wide {
  grid-column: 1 / -1;
}

.portal-access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.portal-access-grid article {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.portal-access-grid h4 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.05;
}

.portal-access-grid ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.portal-access-grid li {
  position: relative;
  padding-left: 16px;
  color: #d4d4d8;
  font-size: 13px;
  line-height: 1.45;
}

.portal-access-grid li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: #fd3a25;
}

.portal-document-list,
.portal-timeline,
.portal-request-list,
.portal-message-grid {
  display: grid;
  gap: 10px;
}

.portal-document-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.portal-document-list li,
.portal-timeline p,
.portal-request-list article,
.portal-message-grid p {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.portal-document-list b,
.portal-document-list span,
.portal-timeline b,
.portal-timeline span,
.portal-request-list strong,
.portal-request-list p,
.portal-request-list span,
.portal-message-grid b,
.portal-message-grid span {
  display: block;
}

.portal-document-list b,
.portal-timeline b,
.portal-request-list strong,
.portal-message-grid b {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.25;
}

.portal-document-list span,
.portal-timeline span,
.portal-request-list span,
.portal-message-grid span {
  margin-top: 5px;
  color: #a1a1aa;
  font-size: 13px;
  line-height: 1.45;
}

.portal-request-list p {
  margin: 8px 0 0;
  color: #d4d4d8;
  font-size: 14px;
  line-height: 1.55;
}

.portal-status-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.portal-status-row span {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid rgba(253, 58, 37, 0.24);
  border-radius: 18px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(253, 58, 37, 0.16), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.portal-message-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-security-card {
  grid-column: 1 / -1;
}

.prototype-story,
.prototype-proof,
.prototype-decisions {
  padding: clamp(56px, 8vw, 104px) 0;
}

.prototype-decisions {
  background: #09090b;
}

.prototype-decisions .portfolio-section-head h2 {
  color: #ffffff;
}

.prototype-decisions .portfolio-section-head p {
  color: #c7c7ce;
}

.prototype-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 30px);
}

.prototype-list-card {
  min-width: 0;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 28px;
  color: #f4f4f5;
  background:
    linear-gradient(135deg, rgba(253, 58, 37, 0.10), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.prototype-list-card--light {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.035);
}

.prototype-list-card h3 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(23px, 2.6vw, 32px);
  line-height: 1.05;
}

.prototype-list-card ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.prototype-list-card li {
  position: relative;
  padding-left: 18px;
  color: #d4d4d8;
  font-size: 15px;
  line-height: 1.6;
}

.prototype-list-card li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #fd3a25;
}

.prototype-story__grid,
.prototype-proof__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(24px, 5vw, 74px);
}

.prototype-story__grid article {
  min-width: 0;
}

.prototype-story__grid article:first-child {
  grid-row: span 2;
}

.prototype-story span {
  display: inline-flex;
  margin-bottom: 14px;
  color: #fd3a25;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.prototype-story h2,
.prototype-proof h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
}

.prototype-story h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.prototype-story p {
  margin: 18px 0 0;
  color: #d4d4d8;
  font-size: 17px;
  line-height: 1.7;
}

.prototype-modules {
  padding: clamp(52px, 8vw, 96px) 0;
  background: #edeeec;
  color: #09090b;
}

.prototype-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.prototype-module-grid article {
  min-width: 0;
  padding: clamp(20px, 3vw, 26px);
  border: 1px solid rgba(9, 9, 11, 0.10);
  border-radius: 22px;
  background: #fafafa;
  box-shadow: 0 18px 45px rgba(9, 9, 11, 0.06);
}

.prototype-module-grid span {
  color: #fd3a25;
  font-size: 12px;
  font-weight: 900;
}

.prototype-module-grid h3 {
  margin: 14px 0 10px;
  color: #09090b;
  font-size: 21px;
  line-height: 1.1;
}

.prototype-module-grid p {
  margin: 0;
  color: #52525b;
  font-size: 15px;
  line-height: 1.6;
}

.prototype-proof__content {
  display: grid;
  gap: 24px;
  align-content: start;
}

.prototype-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prototype-stack span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 99px;
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.portfolio-footer {
  padding: 28px 0;
  color: #a1a1aa;
  background: #09090b;
}

.portfolio-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 14px;
}

.portfolio-footer p {
  margin: 0;
}

.portfolio-page :focus-visible {
  outline: 2px solid #fd3a25;
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .portfolio-header__inner,
  .portfolio-hero__grid,
  .prototype-hero__grid,
  .portfolio-section-head,
  .portfolio-closing__inner,
  .prototype-story__grid,
  .prototype-proof__grid {
    grid-template-columns: 1fr;
  }

  .portfolio-header__inner,
  .portfolio-closing__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .taxonomy-grid,
  .work-grid,
  .prototype-module-grid,
  .prototype-dashboard__grid,
  .leadops-board,
  .prototype-detail-grid,
  .local-seo-grid,
  .local-quality-grid,
  .portal-overview,
  .portal-flow-steps,
  .portal-workflow-grid,
  .portal-workspace,
  .portal-access-grid,
  .portal-status-row,
  .portal-message-grid {
    grid-template-columns: 1fr;
  }

  .prototype-metrics {
    grid-template-columns: 1fr;
  }

  .prototype-story__grid article:first-child {
    grid-row: auto;
  }

  .portfolio-nav,
  .portfolio-closing__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .portfolio-shell {
    width: min(100% - 24px, 1180px);
  }

  .portfolio-header {
    position: relative;
  }

  .prototype-page .portfolio-header {
    position: relative;
  }

  .portfolio-header__inner {
    min-height: 72px;
    gap: 14px;
  }

  .portfolio-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .portfolio-nav a,
  .portfolio-button {
    width: auto;
  }

  .portfolio-nav .portfolio-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .portfolio-closing__actions,
  .portfolio-closing__actions a {
    width: 100%;
  }

  .portfolio-hero {
    padding-top: 54px;
  }

  .portfolio-hero h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .prototype-hero h1 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .taxonomy-item,
  .work-card,
  .portfolio-note,
  .prototype-dashboard {
    border-radius: 22px;
  }

  .work-card__media {
    aspect-ratio: 4 / 3;
  }

  .prototype-hero__actions,
  .prototype-hero__actions a {
    width: 100%;
  }

  .commerce-flow,
  .leadops-status-row {
    grid-template-columns: 1fr;
  }

  .commerce-flow {
    min-height: auto;
    align-items: stretch;
  }

  .commerce-flow span {
    min-height: 58px;
    align-items: center;
  }

  .prototype-panel__head,
  .prototype-dashboard__top,
  .prototype-dashboard__badges {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .prototype-dashboard__badges,
  .prototype-data-label,
  .prototype-pill {
    width: 100%;
  }
}

/* Lot 7 portfolio DA pass: align the bridge page with the homepage polish */
.portfolio-header {
  top: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 18px;
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.portfolio-header__inner {
  width: 100%;
  min-height: 76px;
  padding: 10px 12px 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04) 44%),
    rgba(9, 9, 11, 0.82);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.portfolio-nav {
  gap: 8px;
}

.portfolio-nav a:not(.portfolio-button) {
  min-height: 40px;
  padding: 10px 13px;
}

.portfolio-hero {
  padding: clamp(70px, 9vw, 128px) 0 clamp(54px, 7vw, 92px);
}

.portfolio-hero__grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.62fr);
  gap: clamp(28px, 5vw, 78px);
}

.portfolio-note {
  border-radius: 28px;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.portfolio-taxonomy {
  padding: clamp(46px, 6vw, 82px) 0;
  background: linear-gradient(180deg, #edeeec 0%, #f7f7f5 100%);
}

.taxonomy-grid {
  gap: 16px;
}

.taxonomy-item {
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72)),
    #f7f7f5;
  box-shadow:
    0 22px 54px rgba(9, 9, 11, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.80);
}

.portfolio-work {
  padding: clamp(62px, 8vw, 112px) 0 clamp(70px, 9vw, 128px);
}

.work-card--real-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  min-height: 430px;
  border-color: rgba(253, 58, 37, 0.28);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 0 0 1px rgba(253, 58, 37, 0.08);
}

.work-card--real-feature .work-card__media {
  height: 100%;
  min-height: 430px;
  aspect-ratio: auto;
}

.work-card--real-feature .work-card__body {
  padding: clamp(30px, 4vw, 50px);
}

.work-card--real-feature h3 {
  font-size: clamp(36px, 4.4vw, 58px);
}

.work-card--real-feature p {
  max-width: 620px;
}

.work-card__placeholder {
  background:
    radial-gradient(circle at 20% 12%, rgba(253, 58, 37, 0.18), transparent 36%),
    linear-gradient(160deg, #191a1f 0%, #09090b 100%);
}

.work-card__placeholder span {
  width: min(150px, 58%);
  border-radius: 24px;
  font-size: clamp(24px, 3.1vw, 38px);
}

.work-card--shopify .work-card__placeholder {
  background:
    radial-gradient(circle at 24% 12%, rgba(149, 191, 71, 0.22), transparent 38%),
    linear-gradient(160deg, #171b18 0%, #09090b 100%);
}

.work-card--shopify .work-card__placeholder span {
  border-color: rgba(149, 191, 71, 0.26);
  color: rgba(207, 236, 150, 0.88);
}

.work-card--leadops .work-card__placeholder {
  background:
    linear-gradient(90deg, rgba(96, 165, 250, 0.10), transparent 34%, rgba(253, 58, 37, 0.12) 72%, transparent),
    linear-gradient(160deg, #131820 0%, #09090b 100%);
}

.work-card--leadops .work-card__placeholder span {
  border-color: rgba(96, 165, 250, 0.24);
  color: rgba(191, 219, 254, 0.88);
}

.work-card--seo .work-card__placeholder {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 34px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 34px),
    linear-gradient(160deg, #1b1a16 0%, #09090b 100%);
}

.work-card--seo .work-card__placeholder span {
  border-color: rgba(255, 255, 255, 0.20);
  color: rgba(245, 245, 245, 0.86);
  background: rgba(255, 255, 255, 0.04);
}

.work-card--portal .work-card__placeholder {
  background:
    radial-gradient(circle at 78% 16%, rgba(125, 211, 252, 0.18), transparent 34%),
    linear-gradient(160deg, #121923 0%, #09090b 100%);
}

.work-card--portal .work-card__placeholder span {
  border-color: rgba(125, 211, 252, 0.24);
  color: rgba(186, 230, 253, 0.86);
}

.portfolio-closing {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 38%),
    linear-gradient(180deg, #18181b 0%, #09090b 100%);
  color: #ffffff;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.portfolio-closing h2 {
  color: #ffffff;
}

.portfolio-closing .portfolio-button--outline {
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.portfolio-closing .portfolio-button--outline:hover,
.portfolio-closing .portfolio-button--outline:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.10);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

@media (max-width: 980px) {
  .portfolio-hero__grid {
    grid-template-columns: 1fr;
  }

  .work-card--real-feature {
    display: flex;
    grid-column: auto;
    min-height: 100%;
  }

  .work-card--real-feature .work-card__media {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  .portfolio-header,
  .prototype-page .portfolio-header {
    position: relative;
    top: auto;
    width: min(100% - 24px, 1180px);
    padding-top: 12px;
  }

  .portfolio-header__inner {
    padding: 16px;
    border-radius: 28px;
  }

  .portfolio-hero h1 {
    font-size: clamp(36px, 10.8vw, 48px);
  }

  .work-card--real-feature .work-card__media {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-card__media img {
    transition: none;
  }

  a.work-card__media:hover img,
  a.work-card__media:focus-visible img,
  a.work-card__media:hover .work-card__placeholder span,
  a.work-card__media:focus-visible .work-card__placeholder span {
    transform: none;
  }
}

/* EV Commerce Configurator : carte proof pleine largeur (media a droite) */
.work-card--ev-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: 400px;
  border-color: rgba(200, 163, 106, 0.30);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 0 0 1px rgba(200, 163, 106, 0.08);
}

.work-card--ev-feature .work-card__media {
  order: 2;
  height: 100%;
  min-height: 400px;
  aspect-ratio: auto;
  background: #15120f;
}

.work-card--ev-feature .work-card__media--duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
}

.work-card--ev-feature .work-card__media--duo picture {
  display: block;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.work-card--ev-feature .work-card__media--duo img {
  object-position: 50% 60%;
}

.work-card--ev-feature .work-card__body {
  order: 1;
  padding: clamp(30px, 4vw, 50px);
}

.work-card--ev-feature h3 {
  font-size: clamp(32px, 3.8vw, 50px);
}

.work-card--ev-feature p {
  max-width: 560px;
}

.work-card--ev-feature .work-card__meta::after {
  background: rgba(200, 163, 106, 0.70);
}

.work-card--ev-feature .work-card__action a span {
  color: #c8a36a;
}

@media (max-width: 980px) {
  .work-card--ev-feature {
    display: flex;
    grid-column: auto;
    min-height: 100%;
  }

  .work-card--ev-feature .work-card__media,
  .work-card--ev-feature .work-card__body {
    order: 0;
  }

  .work-card--ev-feature .work-card__media {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  .work-card--ev-feature .work-card__media {
    aspect-ratio: 4 / 3;
  }
}

/* ═══════════════════════════════════
   ALIGNEMENT DA SITE PRINCIPAL — 2026-07-04
   Boutons pill 3D identiques au tf-btn de l'accueil,
   kicker en puce pastille comme les heading-sub.
   Partagé par /portfolio/ et les pages locales Vitré/Rennes.
   ═══════════════════════════════════ */
.portfolio-button {
  gap: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  background:
    radial-gradient(62.56% 62.56% at 28.14% -10.42%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(0deg, #272727, #272727);
  box-shadow:
    0px -3px 0px 0px #080808 inset,
    0px 1px 0px 0px rgba(255, 255, 255, 0.30) inset,
    0px 6.65px 5.32px 0px rgba(0, 0, 0, 0.13),
    0px 22.34px 17.87px 0px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.portfolio-button:hover,
.portfolio-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0px -3px 0px 0px #080808 inset,
    0px 1px 0px 0px rgba(255, 255, 255, 0.30) inset,
    0px 12px 24px 0px rgba(253, 58, 37, 0.25);
}

.portfolio-button--outline {
  background: rgba(255, 255, 255, 0.04);
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.portfolio-button--outline:hover,
.portfolio-button--outline:focus-visible {
  background: rgba(255, 255, 255, 0.10);
  filter: none;
  box-shadow: none;
}

/* Kicker en pastille, écho des heading-sub de l'accueil */
.portfolio-kicker {
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #f4f4f5;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.portfolio-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fd3a25;
  flex-shrink: 0;
}

/* Logo lisible sur le header sombre (audit 2026-07-05) : pastille claire
   derriere le monogramme, sinon il disparait sur le fond noir. */
.portfolio-logo img {
  background: #ffffff;
  border-radius: 50%;
  padding: 3px;
}
